mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
added check for outstanding requests
This commit is contained in:
@ -131,6 +131,19 @@ void Foam::Pstream::exit(int errnum)
|
|||||||
delete[] buff;
|
delete[] buff;
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
if (PstreamGlobals::outstandingRequests_.size())
|
||||||
|
{
|
||||||
|
label n = PstreamGlobals::outstandingRequests_.size();
|
||||||
|
PstreamGlobals::outstandingRequests_.clear();
|
||||||
|
|
||||||
|
WarningIn("Pstream::exit(int)")
|
||||||
|
<< "There are still " << n << " outstanding MPI_Requests." << endl
|
||||||
|
<< "This means that your code exited before doing a"
|
||||||
|
<< " Pstream::waitRequests()." << endl
|
||||||
|
<< "This should not happen for a normal code exit."
|
||||||
|
<< endl;
|
||||||
|
}
|
||||||
|
|
||||||
if (errnum == 0)
|
if (errnum == 0)
|
||||||
{
|
{
|
||||||
MPI_Finalize();
|
MPI_Finalize();
|
||||||
|
|||||||
Reference in New Issue
Block a user