From cb697ea37a7ae67335de6995b4d11500258a0983 Mon Sep 17 00:00:00 2001 From: andy <a.heather@opencfd.co.uk> Date: Tue, 3 Mar 2009 18:54:10 +0000 Subject: [PATCH] moved warningIn msgs to inside if (debug) statements --- .../cellPointWeight/cellPointWeight.C | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/finiteVolume/interpolation/interpolation/interpolationCellPoint/cellPointWeight/cellPointWeight.C b/src/finiteVolume/interpolation/interpolation/interpolationCellPoint/cellPointWeight/cellPointWeight.C index 6666d347f0c..65ef6826fa8 100644 --- a/src/finiteVolume/interpolation/interpolation/interpolationCellPoint/cellPointWeight/cellPointWeight.C +++ b/src/finiteVolume/interpolation/interpolation/interpolationCellPoint/cellPointWeight/cellPointWeight.C @@ -164,12 +164,12 @@ void Foam::cellPointWeight::findTetrahedron } } - WarningIn - ( - "cellPointWeight::findTetrahedron" - "(const polyMesh&, const vector&, const label, const label)" - ) << "Tetrahedron search failed; using closest tet values to point " - << nl << " cell: " << cellIndex << endl; + if (debug) + { + Pout<< "cellPointWeight::findTetrahedron" << nl + << " Tetrahedron search failed; using closest tet values to " + << "point " << nl << " cell: " << cellIndex << nl << endl; + } const labelList& facePointsClose = mesh.faces()[cellFaces[faceClose]]; faceVertices_[0] = facePointsClose[0]; @@ -284,13 +284,12 @@ void Foam::cellPointWeight::findTriangle pointI++; } - WarningIn - ( - "Foam::cellPointWeight::findTriangle" - "(const polyMesh&, const vector&, const label)" - ) << "Triangle search failed; using closest triangle to " - << "point" << nl - << " cell face: " << faceIndex << endl; + if (debug) + { + Pout<< "Foam::cellPointWeight::findTriangle" + << "Triangle search failed; using closest triangle to point" << nl + << " cell face: " << faceIndex << nl << endl; + } // Indices of the cell vertices making up the triangle faceVertices_[0] = facePoints[0]; -- GitLab