BUG: matrix checking: Fixes #1626

This commit is contained in:
mattijs
2020-03-11 15:52:15 +00:00
parent b69360fec3
commit 97ff8fee20

View File

@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2011-2017 OpenFOAM Foundation Copyright (C) 2011-2017 OpenFOAM Foundation
Copyright (C) 2019 OpenCFD Ltd. Copyright (C) 2019-2020 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -174,12 +174,8 @@ void Foam::lduMatrix::updateMatrixInterfaces
{ {
if (allUpdated) if (allUpdated)
{ {
// All received. Just remove all storage of requests // All received. Just remove all outstanding requests
// Note that we don't know what starting number of requests UPstream::resetRequests(startRequest);
// was before start of sends and receives (since set from
// initMatrixInterfaces) so set to 0 and loose any in-flight
// requests.
UPstream::resetRequests(0);
} }
else else
{ {