Commit ecef61da authored by Lukas Riedel's avatar Lukas Riedel

Fixed bug in test-mass-conservation

Throwing an exception now correctly results in a failing test
parent d83971ed
......@@ -32,6 +32,7 @@ using CubeAdaptive = Dune::Dorie::BaseTraits<Dune::UGGrid,
int main (int argc, char** argv)
{
try{
// initialize MPI if needed
auto& helper = Dune::MPIHelper::instance(argc, argv);
......@@ -83,6 +84,12 @@ int main (int argc, char** argv)
std::cerr << "Mass conservation test exceeded limit!" << std::endl;
std::cerr << "Limit: " << limit << std::endl;
std::cerr << "Result: " << result << std::endl;
return 2;
}
}
catch(...) {
std::cerr << "Exception occurred!" << std::endl;
return 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment