STYLE: use DebugInFunction macro

This commit is contained in:
Mark Olesen
2020-05-01 16:11:18 +02:00
parent a3c226a1bd
commit a1ccd1b716
56 changed files with 360 additions and 840 deletions

View File

@ -1229,10 +1229,8 @@ void Foam::faMesh::calcPointAreaNormalsByQuadricsFit() const
if (curPoints.size() < 5)
{
if (debug)
{
Info << "WARNING: Extending point set for fitting." << endl;
}
DebugInfo
<< "WARNING: Extending point set for fitting." << endl;
labelHashSet faceSet(pointFaces[curPoint]);
labelList curFaces(faceSet.toc());

View File

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2016-2017 Wikki Ltd
Copyright (C) 2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -36,11 +37,7 @@ License
void Foam::faMesh::updateMesh(const mapPolyMesh& mpm)
{
if (debug)
{
Info<< "bool faMesh::updateMesh(const mapPolyMesh& mpm) : "
<< "Updating mesh" << endl;
}
DebugInFunction << "Updating mesh" << endl;
// if (!mpm.morphing())
// {
@ -182,11 +179,7 @@ void Foam::faMesh::mapOldAreas(const faMeshMapper& mapper) const
{
if (S0Ptr_)
{
if (debug)
{
InfoIn("void faMesh::mapOldAreas(const faMeshMapper& mapper)")
<< "Mapping old face areas." << endl;
}
DebugInFunction << "Mapping old face areas." << endl;
scalarField& S0 = *S0Ptr_;
@ -211,11 +204,7 @@ void Foam::faMesh::mapOldAreas(const faMeshMapper& mapper) const
if (S00Ptr_)
{
if (debug)
{
InfoIn("void faMesh::mapOldAreas(const faMeshMapper& mapper)")
<< "Mapping old-old face areas." << endl;
}
DebugInFunction << "Mapping old-old face areas." << endl;
scalarField& S00 = *S00Ptr_;