diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C index 28930c573f..39e7375a67 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C @@ -7,6 +7,7 @@ #include "pointSet.H" #include "IOmanip.H" #include "emptyPolyPatch.H" +#include "processorPolyPatch.H" Foam::label Foam::checkTopology ( @@ -289,10 +290,18 @@ Foam::label Foam::checkTopology } } - if (!Pstream::parRun()) + { - Pout<< "\nChecking patch topology for multiply connected surfaces ..." - << endl; + if (!Pstream::parRun()) + { + Info<< "\nChecking patch topology for multiply connected" + << " surfaces..." << endl; + } + else + { + Info<< "\nChecking basic patch addressing..." << endl; + } + const polyBoundaryMesh& patches = mesh.boundaryMesh(); @@ -301,90 +310,101 @@ Foam::label Foam::checkTopology ( mesh, "nonManifoldPoints", - mesh.nPoints()/100 + mesh.nPoints()/1000 ); Pout.setf(ios_base::left); - Pout<< " " + Info<< " " << setw(20) << "Patch" << setw(9) << "Faces" - << setw(9) << "Points" - << setw(34) << "Surface topology"; + << setw(9) << "Points"; + if (!Pstream::parRun()) + { + Info<< setw(34) << "Surface topology"; + } if (allGeometry) { - Pout<< " Bounding box"; + Info<< " Bounding box"; } - Pout<< endl; + Info<< endl; forAll(patches, patchI) { const polyPatch& pp = patches[patchI]; - Pout<< " " + if (!isA(pp)) + { + Info<< " " << setw(20) << pp.name() - << setw(9) << pp.size() - << setw(9) << pp.nPoints(); + << setw(9) << returnReduce(pp.size(), sumOp