ENH: bundle together freed/outstanding MPI request handling

- improve communicator wrapping
- avoid indexing errors when using partial subranks
- UPstream::is_subrank (for testing partial subranks)
This commit is contained in:
Mark Olesen
2022-12-06 14:00:53 +01:00
parent d5e82f072e
commit b69db76b67
11 changed files with 302 additions and 112 deletions

View File

@ -218,7 +218,7 @@ Foam::label Foam::UIPstream::read
<< Foam::endl;
}
PstreamGlobals::outstandingRequests_.append(request);
PstreamGlobals::outstandingRequests_.push_back(request);
// Assume the message is completely received.
return bufSize;