From bf19a3c70793cc071b04590d7608518f51978688 Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 30 Mar 2009 11:05:59 +0100 Subject: [PATCH] synchronisation at start of loop --- .../meshRefinement/meshRefinementBaffles.C | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C b/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C index c5941aeadc..e154576ad9 100644 --- a/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C +++ b/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C @@ -1212,6 +1212,17 @@ void Foam::meshRefinement::findCellZoneTopo // by changing cell zone every time we cross a surface. while (true) { + // Synchronise regionToCellZone. + // Note: + // - region numbers are identical on all processors + // - keepRegion is identical ,, + // - cellZones are identical ,, + // This done at top of loop to account for geometric matching + // not being synchronised. + Pstream::listCombineGather(regionToCellZone, maxEqOp