mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: double call to MPI_Finalize
I missed this one when moving the MPI handling into RAII style
This commit is contained in:
parent
23cd8e620a
commit
8eb63409cb
@ -385,9 +385,7 @@ namespace Opm
|
|||||||
// the program should abort. This is the case e.g. for the --help and the
|
// the program should abort. This is the case e.g. for the --help and the
|
||||||
// --print-properties parameters.
|
// --print-properties parameters.
|
||||||
#if HAVE_MPI
|
#if HAVE_MPI
|
||||||
if (status < 0)
|
if (status >= 0)
|
||||||
MPI_Finalize(); // graceful stop for --help or --print-properties command line.
|
|
||||||
else
|
|
||||||
MPI_Abort(MPI_COMM_WORLD, status);
|
MPI_Abort(MPI_COMM_WORLD, status);
|
||||||
#endif
|
#endif
|
||||||
exitCode = (status > 0) ? status : EXIT_SUCCESS;
|
exitCode = (status > 0) ? status : EXIT_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user