#include "checkTopology.H" #include "polyMesh.H" #include "Time.H" #include "regionSplit.H" #include "cellSet.H" #include "faceSet.H" #include "pointSet.H" #include "IOmanip.H" #include "emptyPolyPatch.H" Foam::label Foam::checkTopology ( const polyMesh& mesh, const bool allTopology, const bool allGeometry ) { label noFailedChecks = 0; Info<< "Checking topology..." << endl; // Check if the boundary definition is unique mesh.boundaryMesh().checkDefinition(true); // Check that empty patches cover all sides of the mesh { label nEmpty = 0; forAll(mesh.boundaryMesh(), patchI) { if (isA(mesh.boundaryMesh()[patchI])) { nEmpty += mesh.boundaryMesh()[patchI].size(); } } reduce(nEmpty, sumOp