Call MPI_Abort() in main catch all clause

This commit is contained in:
Joakim Hove committed 2021-09-28 20:53:38 +02:00
1 parent 56afec81b4
commit 5d3e56baa3
1 file changed
+4 -1
+4 -1
View File
@@ -431,7 +431,10 @@ namespace Opm
std::cout << message.str() << "\n";
}
}
#if HAVE_MPI
if (this->mpi_size_ > 1)
MPI_Abort(MPI_COMM_WORLD, EXIT_FAILURE);
#endif
return EXIT_FAILURE;
}
}