From 6548c1dd276e61a0786f612cdf69398edfcda6e8 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 16 Sep 2010 18:28:10 +0100 Subject: [PATCH] ENH: checkMesh : moved parallel checks into zones --- .../manipulation/checkMesh/checkTopology.C | 26 ------------------- .../manipulation/checkMesh/checkTopology.H | 2 -- 2 files changed, 28 deletions(-) diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C index 9eb3b5b4f2..09fb5484e9 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C @@ -7,32 +7,6 @@ #include "pointSet.H" #include "IOmanip.H" -bool Foam::checkSync(const wordList& names) -{ - List allNames(Pstream::nProcs()); - allNames[Pstream::myProcNo()] = names; - Pstream::gatherList(allNames); - Pstream::scatterList(allNames); - - bool hasError = false; - - for (label procI = 1; procI < allNames.size(); procI++) - { - if (allNames[procI] != allNames[0]) - { - hasError = true; - - Info<< " ***Inconsistent zones across processors, " - "processor 0 has zones:" << allNames[0] - << ", processor " << procI << " has zones:" - << allNames[procI] - << endl; - } - } - return hasError; -} - - Foam::label Foam::checkTopology ( const polyMesh& mesh, diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.H b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.H index 4790765d16..70443a86b6 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.H +++ b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.H @@ -5,7 +5,5 @@ namespace Foam { class polyMesh; - bool checkSync(const wordList& names); - label checkTopology(const polyMesh&, const bool, const bool); }