Commit c5d46571 authored by Mark Olesen's avatar Mark Olesen
Browse files

ENH: downgrade to warning and exit if MPI_Finalized is called twice.

- this can occur when OpenFOAM is run in serial mode, but connects to
  a program that starts/stops MPI on its own.
parent 9972b434
......@@ -216,10 +216,11 @@ void Foam::UPstream::exit(int errnum)
if (flag)
// Already finalized
<< "MPI was already finalized" << endl
<< Foam::abort(FatalError);
// Already finalized - warn and exit
<< "MPI was already finalized (perhaps by a connected program)"
<< endl;
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