mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Pstream: incorrect indexing. Fixes #3452
This commit is contained in:
@ -855,7 +855,7 @@ bool Foam::UPstream::finishedRequest(const label i)
|
|||||||
// This allows MPI to progress behind the scenes if it wishes.
|
// This allows MPI to progress behind the scenes if it wishes.
|
||||||
|
|
||||||
int flag = 0;
|
int flag = 0;
|
||||||
if (i < 0 || i >= PstreamGlobals::outstandingRequests_.size())
|
if (i >= 0 && i < PstreamGlobals::outstandingRequests_.size())
|
||||||
{
|
{
|
||||||
auto& request = PstreamGlobals::outstandingRequests_[i];
|
auto& request = PstreamGlobals::outstandingRequests_[i];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user