From 196399ef6ac61aeff40f752daf53b83d59191171 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Wed, 20 Nov 2019 10:08:18 +0000 Subject: [PATCH] Bugfix: comms barrier for AMG agglomeration with non-blocking communications --- .../GAMGAgglomeration/GAMGAgglomerateLduAddressing.C | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/foam/matrices/lduMatrix/solvers/AMG/AMGAgglomerations/GAMGAgglomeration/GAMGAgglomerateLduAddressing.C b/src/foam/matrices/lduMatrix/solvers/AMG/AMGAgglomerations/GAMGAgglomeration/GAMGAgglomerateLduAddressing.C index 74d7e2648..8d3e89473 100644 --- a/src/foam/matrices/lduMatrix/solvers/AMG/AMGAgglomerations/GAMGAgglomeration/GAMGAgglomerateLduAddressing.C +++ b/src/foam/matrices/lduMatrix/solvers/AMG/AMGAgglomerations/GAMGAgglomeration/GAMGAgglomerateLduAddressing.C @@ -227,6 +227,11 @@ void Foam::GAMGAgglomeration::agglomerateLduAddressing } } + if (Pstream::parRun()) + { + Pstream::waitRequests(); + } + // Store coefficients to avoid tangled communications // HJ, 1/Apr/2009 FieldField fineInterfaceAddr(fineInterfaces.size()); @@ -253,11 +258,6 @@ void Foam::GAMGAgglomeration::agglomerateLduAddressing } } - if (Pstream::parRun()) - { - Pstream::waitRequests(); - } - // Add the coarse level // Set the coarse ldu addressing onto the list