Skip to content
Snippets Groups Projects
Commit a992a566 authored by René Fritze's avatar René Fritze
Browse files

[common.parallelhelper] don't try to abort solitary mpi procs

parent d64e3ff3
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,9 @@ ...@@ -11,7 +11,9 @@
int Dune::Stuff::abort_all_mpi_processes() int Dune::Stuff::abort_all_mpi_processes()
{ {
#if HAVE_MPI #if HAVE_MPI
return MPI_Abort(MPIHelper::getCommunicator(), 1); if (MPIHelper::getCollectiveCommunication().size() > 1)
return MPI_Abort(MPIHelper::getCommunicator(), 1);
else
#endif #endif
return 1; return 1;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment