Call MPI_Abort() in main catch all clause

This commit is contained in:
Joakim Hove
2021-09-28 11:43:12 +02:00
parent 56afec81b4
commit 5d3e56baa3

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;
}
}