Commit 7610c501 authored by Ansgar Burchardt's avatar Ansgar Burchardt

Merge branch 'bugfix/test-parallel-ug-only-with-parallel-ug' into 'master'

test-parallel-ug: return 77 when run in parallel with sequential dune-uggrid

See merge request !159
parent a9cb06e5
Pipeline #1811 passed with stage
in 324 minutes and 30 seconds
......@@ -622,6 +622,14 @@ int main (int argc , char **argv) try
// initialize MPI, finalize is done automatically on exit
auto &mpiHelper = Dune::MPIHelper::instance(argc, argv);
#if !defined(ModelP)
if (mpiHelper.size() > 1) {
if (mpiHelper.rank() == 0)
std::cout << "SKIPPED: test-parallel-ug requires a parallel version of dune-uggrid\n";
return 77;
}
#endif
std::cout << "This is process "
<< mpiHelper.rank() + 1
<< " of "
......
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