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:
Arne Morten Kvarving
2017-08-16 11:27:39 +02:00
parent 83779e5865
commit 7d9ccbd620
+2 -3
View File
@@ -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;
}