#include "checkTopology.H" #include "polyMesh.H" #include "Time.H" #include "regionSplit.H" #include "cellSet.H" #include "faceSet.H" #include "pointSet.H" #include "IOmanip.H" Foam::label Foam::checkTopology ( const polyMesh& mesh, const bool allTopology, const bool allGeometry ) { label noFailedChecks = 0; Pout<< "Checking topology..." << endl; // Check if the boundary definition is unique mesh.boundaryMesh().checkDefinition(true); // Check if the boundary processor patches are correct mesh.boundaryMesh().checkParallelSync(true); { pointSet points(mesh, "unusedPoints", mesh.nPoints()/100); if (mesh.checkPoints(true, &points)) { noFailedChecks++; Pout<< " < 0) { Pout<< " <()) > 0) { bb.min() = pts[mp[0]]; bb.max() = pts[mp[0]]; for (label i = 1; i < mp.size(); i++) { bb.min() = min(bb.min(), pts[mp[i]]); bb.max() = max(bb.max(), pts[mp[i]]); } reduce(bb.min(), minOp()); reduce(bb.max(), maxOp()); } Pout<< ' ' << bb; } Pout<< endl; } if (points.size() > 0) { Pout<< " <