Skip to content
Snippets Groups Projects
Commit cb697ea3 authored by Andrew Heather's avatar Andrew Heather
Browse files

moved warningIn msgs to inside if (debug) statements

parent 5d3db386
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment