From 96a3de7a434ce55f9a83f2f4918eb40efb60b4f4 Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 1 Jun 2010 14:35:55 +0100 Subject: [PATCH] ENH: work with processors with 0 cells. polyMesh::directions, checkMesh. --- .../utilities/mesh/manipulation/checkMesh/checkTopology.C | 5 +++-- src/OpenFOAM/meshes/polyMesh/polyMesh.C | 3 +++ src/OpenFOAM/meshes/polyMesh/zones/faceZone/faceZone.C | 5 ++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C index f0aa4a0aaa..9e96eec03f 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C @@ -12,6 +12,7 @@ bool Foam::checkSync(const wordList& names) List allNames(Pstream::nProcs()); allNames[Pstream::myProcNo()] = names; Pstream::gatherList(allNames); + Pstream::scatterList(allNames); bool hasError = false; @@ -72,8 +73,8 @@ Foam::label Foam::checkTopology Info<< " ***FaceZone " << mesh.faceZones()[zoneI].name() << " is not correctly synchronised" << " across coupled boundaries." - << " (coupled faces both" - << " present in set but with opposite flipmap)" << endl; + << " (coupled faces are either not both " + << " present in set or have same flipmap)" << endl; noFailedChecks++; } } diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.C b/src/OpenFOAM/meshes/polyMesh/polyMesh.C index d0b3a7fa66..0ed5f56200 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.C @@ -85,6 +85,9 @@ void Foam::polyMesh::calcDirections() const } } + reduce(nEmptyPatches, maxOp