From 993b9796175534dfbfba3067685ada36d9c25330 Mon Sep 17 00:00:00 2001 From: Vuko Vukcevic Date: Mon, 30 Oct 2017 11:11:24 +0100 Subject: [PATCH] Optional debug output in polyRef --- .../directTopoChange/directActions/polyRef.C | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dynamicMesh/dynamicMesh/directTopoChange/directTopoChange/directActions/polyRef.C b/src/dynamicMesh/dynamicMesh/directTopoChange/directTopoChange/directActions/polyRef.C index e1ce94e1f..5562dc046 100644 --- a/src/dynamicMesh/dynamicMesh/directTopoChange/directTopoChange/directActions/polyRef.C +++ b/src/dynamicMesh/dynamicMesh/directTopoChange/directTopoChange/directActions/polyRef.C @@ -800,7 +800,11 @@ Foam::label Foam::polyRef::getAnchorLevel(const label faceI) const } } - Info<< "nPointsPerLevel: " << nPointsPerLevel << endl; + if (debug) + { + // Print out number of points per level + Info<< "nPointsPerLevel: " << nPointsPerLevel << endl; + } // Find level with maximum number of points const label maxLevelI = findMax(nPointsPerLevel);