mirror of
https://github.com/OPM/opm-upscaling.git
synced 2026-08-27 05:27:10 -05:00
fixed: catch Dune::exception before std::exception
Dune::exception extends std::exception in dune 2.5, meaning it will be caught by the std::exception catch
This commit is contained in:
@@ -496,12 +496,11 @@ try
|
||||
return runAMG<AMG2Level>(p);
|
||||
else
|
||||
return runAMG<AMG1>(p);
|
||||
} catch (Dune::Exception &e) {
|
||||
std::cerr << "Dune reported error: " << e << std::endl;
|
||||
} catch (const std::exception &e) {
|
||||
throw e;
|
||||
}
|
||||
catch (Dune::Exception &e) {
|
||||
std::cerr << "Dune reported error: " << e << std::endl;
|
||||
}
|
||||
catch (...) {
|
||||
std::cerr << "Unknown exception thrown!" << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user