From 97ff8fee205f38cf844fe844faa819e4626456b7 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 11 Mar 2020 15:52:15 +0000 Subject: [PATCH] BUG: matrix checking: Fixes #1626 --- .../lduMatrix/lduMatrixUpdateMatrixInterfaces.C | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrixUpdateMatrixInterfaces.C b/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrixUpdateMatrixInterfaces.C index 776a97bab0..914fbf4f15 100644 --- a/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrixUpdateMatrixInterfaces.C +++ b/src/OpenFOAM/matrices/lduMatrix/lduMatrix/lduMatrixUpdateMatrixInterfaces.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2019 OpenCFD Ltd. + Copyright (C) 2019-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -174,12 +174,8 @@ void Foam::lduMatrix::updateMatrixInterfaces { if (allUpdated) { - // All received. Just remove all storage of requests - // Note that we don't know what starting number of requests - // was before start of sends and receives (since set from - // initMatrixInterfaces) so set to 0 and loose any in-flight - // requests. - UPstream::resetRequests(0); + // All received. Just remove all outstanding requests + UPstream::resetRequests(startRequest); } else {