From ef2dcd9ad145c495049fca26eb82c9ba6708c559 Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 3 Sep 2013 11:32:26 +0100 Subject: [PATCH] BUG: layer addition/removal - updated parallel behaviour --- .../layerAdditionRemoval.C | 179 ++++++++++-------- .../layerAdditionRemoval.H | 16 +- 2 files changed, 108 insertions(+), 87 deletions(-) diff --git a/src/dynamicMesh/layerAdditionRemoval/layerAdditionRemoval.C b/src/dynamicMesh/layerAdditionRemoval/layerAdditionRemoval.C index b052b4de86..f99612eed6 100644 --- a/src/dynamicMesh/layerAdditionRemoval/layerAdditionRemoval.C +++ b/src/dynamicMesh/layerAdditionRemoval/layerAdditionRemoval.C @@ -58,10 +58,8 @@ void Foam::layerAdditionRemoval::checkDefinition() { if (!faceZoneID_.active()) { - FatalErrorIn - ( - "void Foam::layerAdditionRemoval::checkDefinition()" - ) << "Master face zone named " << faceZoneID_.name() + FatalErrorIn("void Foam::layerAdditionRemoval::checkDefinition()") + << "Master face zone named " << faceZoneID_.name() << " cannot be found." << abort(FatalError); } @@ -79,13 +77,15 @@ void Foam::layerAdditionRemoval::checkDefinition() << abort(FatalError); } - if (topoChanger().mesh().faceZones()[faceZoneID_.index()].empty()) + label nFaces = topoChanger().mesh().faceZones()[faceZoneID_.index()].size(); + + reduce(nFaces, sumOp