From c26ef75df4b986345a82a135d05ddcc819ff2c4c Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 23 Jul 2018 12:42:49 +0100 Subject: [PATCH] ENH: snappyHexMesh: limit debug printing. See #941. --- .../meshRefinement/meshRefinementBaffles.C | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/mesh/snappyHexMesh/meshRefinement/meshRefinementBaffles.C b/src/mesh/snappyHexMesh/meshRefinement/meshRefinementBaffles.C index 39af29276a..30abfceaa1 100644 --- a/src/mesh/snappyHexMesh/meshRefinement/meshRefinementBaffles.C +++ b/src/mesh/snappyHexMesh/meshRefinement/meshRefinementBaffles.C @@ -2034,11 +2034,19 @@ void Foam::meshRefinement::findCellZoneTopo if (debug) { + Pout<< "meshRefinement::findCellZoneTopo :" + << " nRegions:" << regionToCellZone.size() + << " of which visited (-1 = background, >= 0 : cellZone) :" + << endl; + forAll(regionToCellZone, regionI) { - Pout<< "Region " << regionI - << " becomes cellZone:" << regionToCellZone[regionI] - << endl; + if (regionToCellZone[regionI] != -2) + { + Pout<< "Region " << regionI + << " becomes cellZone:" << regionToCellZone[regionI] + << endl; + } } }