mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
catch all exceptions in all tutorials and examples
This commit is contained in:
parent
2cfe79f664
commit
aa62980fbf
@ -20,8 +20,8 @@
|
|||||||
#include <opm/core/props/rock/RockCompressibility.hpp>
|
#include <opm/core/props/rock/RockCompressibility.hpp>
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
|
try
|
||||||
{
|
{
|
||||||
|
|
||||||
using namespace Opm::parameter;
|
using namespace Opm::parameter;
|
||||||
using namespace Opm;
|
using namespace Opm;
|
||||||
ParameterGroup parameters(argc, argv, false);
|
ParameterGroup parameters(argc, argv, false);
|
||||||
@ -130,4 +130,7 @@ int main(int argc, char** argv)
|
|||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
catch (const std::exception &e) {
|
||||||
|
std::cerr << "Program threw an exception: " << e.what() << "\n";
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user