From cc57ecc1883ff4fbb9e3bfdb3e13dedee6fbaf06 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Thu, 10 Jul 2014 16:50:22 +0100 Subject: [PATCH] ENH: FaceCellWave: better debug printing --- src/meshTools/algorithms/MeshWave/FaceCellWave.C | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/meshTools/algorithms/MeshWave/FaceCellWave.C b/src/meshTools/algorithms/MeshWave/FaceCellWave.C index 9b2a68fc965..f254302a7f4 100644 --- a/src/meshTools/algorithms/MeshWave/FaceCellWave.C +++ b/src/meshTools/algorithms/MeshWave/FaceCellWave.C @@ -546,7 +546,7 @@ void Foam::FaceCellWave<Type, TrackingData>::handleProcPatches() sendFacesInfo ); - if (debug) + if (debug & 2) { Pout<< " Processor patch " << patchI << ' ' << procPatch.name() << " communicating with " << procPatch.neighbProcNo() @@ -581,7 +581,7 @@ void Foam::FaceCellWave<Type, TrackingData>::handleProcPatches() fromNeighbour >> receiveFaces >> receiveFacesInfo; } - if (debug) + if (debug & 2) { Pout<< " Processor patch " << patchI << ' ' << procPatch.name() << " communicating with " << procPatch.neighbProcNo() @@ -672,7 +672,7 @@ void Foam::FaceCellWave<Type, TrackingData>::handleCyclicPatches() ); } - if (debug) + if (debug & 2) { Pout<< " Cyclic patch " << patchI << ' ' << cycPatch.name() << " Changed : " << nReceiveFaces @@ -1028,7 +1028,7 @@ Foam::label Foam::FaceCellWave<Type, TrackingData>::faceToCell() // Handled all changed faces by now nChangedFaces_ = 0; - if (debug) + if (debug & 2) { Pout<< " Changed cells : " << nChangedCells_ << endl; } @@ -1110,7 +1110,7 @@ Foam::label Foam::FaceCellWave<Type, TrackingData>::cellToFace() handleProcPatches(); } - if (debug) + if (debug & 2) { Pout<< " Changed faces : " << nChangedFaces_ << endl; } @@ -1151,7 +1151,7 @@ Foam::label Foam::FaceCellWave<Type, TrackingData>::iterate(const label maxIter) { if (debug) { - Pout<< " Iteration " << iter << endl; + Info<< " Iteration " << iter << endl; } nEvals_ = 0; @@ -1160,7 +1160,7 @@ Foam::label Foam::FaceCellWave<Type, TrackingData>::iterate(const label maxIter) if (debug) { - Pout<< " Total changed cells : " << nCells << endl; + Info<< " Total changed cells : " << nCells << endl; } if (nCells == 0) @@ -1172,7 +1172,7 @@ Foam::label Foam::FaceCellWave<Type, TrackingData>::iterate(const label maxIter) if (debug) { - Pout<< " Total changed faces : " << nFaces << nl + Info<< " Total changed faces : " << nFaces << nl << " Total evaluations : " << nEvals_ << nl << " Remaining unvisited cells: " << nUnvisitedCells_ << nl << " Remaining unvisited faces: " << nUnvisitedFaces_ << endl; -- GitLab