diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C index cad195d013..7874204aa1 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C @@ -583,6 +583,97 @@ Foam::label Foam::checkTopology //Info.setf(ios_base::right); } + { + Info<< "\nChecking basic faceZone addressing..." << endl; + + Pout.setf(ios_base::left); + + Info<< " " + << setw(20) << "FaceZone" + << setw(9) << "Faces" + << setw(9) << "Points" + << setw(13) << "BoundingBox" < localPoints; + forAll(faceZones, zoneI) + { + const faceZone& fZone = faceZones[zoneI]; + localPoints.setCapacity(10*faces.size()); + + forAll(fZone, i) + { + const label faceI = fZone[i]; + const face& f = faces[faceI]; + const pointField facePoints(f.points(points)); + + forAll(facePoints, pointI) + { + const point& pt = facePoints[pointI]; + localPoints.append(pt); + } + } + boundBox bb(localPoints, true); + + Info<< " " + << setw(20) << fZone.name() + << setw(9) << returnReduce(fZone.size(), sumOp