From 82a18e4cd9d2532db140645f0513c2790b93dc4e Mon Sep 17 00:00:00 2001 From: Prashant Date: Mon, 28 Aug 2017 10:21:47 +0530 Subject: [PATCH] ENH: Print info on zones only if present --- .../manipulation/checkMesh/checkTopology.C | 148 ++++++++++-------- 1 file changed, 82 insertions(+), 66 deletions(-) diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C index 7874204aa1..81a18770ae 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C @@ -588,44 +588,51 @@ Foam::label Foam::checkTopology Pout.setf(ios_base::left); - Info<< " " - << setw(20) << "FaceZone" - << setw(9) << "Faces" - << setw(9) << "Points" - << setw(13) << "BoundingBox" < localPoints; - forAll(faceZones, zoneI) + + if (faceZones.size()) { - 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