From 1a633da3e69f2bf2b03d704c4d01420667a1ebb9 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 16 Sep 2010 18:27:07 +0100 Subject: [PATCH] ENH: checkMesh : move parallel checking into Zones. --- .../manipulation/checkMesh/checkTopology.C | 25 +++++-------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C index 66bbaa23fc..9eb3b5b4f2 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C @@ -51,35 +51,22 @@ Foam::label Foam::checkTopology mesh.boundaryMesh().checkParallelSync(true); // Check names of zones are equal - if (checkSync(mesh.cellZones().names())) + mesh.cellZones().checkDefinition(true); + if (mesh.cellZones().checkParallelSync(true)) { noFailedChecks++; } - if (checkSync(mesh.faceZones().names())) + mesh.faceZones().checkDefinition(true); + if (mesh.faceZones().checkParallelSync(true)) { noFailedChecks++; } - if (checkSync(mesh.pointZones().names())) + mesh.pointZones().checkDefinition(true); + if (mesh.pointZones().checkParallelSync(true)) { noFailedChecks++; } - // Check contents of faceZones consistent - { - forAll(mesh.faceZones(), zoneI) - { - if (mesh.faceZones()[zoneI].checkParallelSync(false)) - { - Info<< " ***FaceZone " << mesh.faceZones()[zoneI].name() - << " is not correctly synchronised" - << " across coupled boundaries." - << " (coupled faces are either not both " - << " present in set or have same flipmap)" << endl; - noFailedChecks++; - } - } - } - { pointSet points(mesh, "unusedPoints", mesh.nPoints()/100); if (mesh.checkPoints(true, &points))