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

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -41,11 +42,8 @@ Description
void Foam::meshToMesh0::calcAddressing()
{
if (debug)
{
InfoInFunction
<< "Calculating mesh-to-mesh cell addressing" << endl;
}
DebugInFunction
<< "Calculating mesh-to-mesh cell addressing" << endl;
// set reference to cells
const cellList& fromCells = fromMesh_.cells();
@ -62,10 +60,7 @@ void Foam::meshToMesh0::calcAddressing()
// visit all boundaries and mark the cell next to the boundary.
if (debug)
{
InfoInFunction << "Setting up rescue" << endl;
}
DebugInFunction << "Setting up rescue" << endl;
List<bool> boundaryCell(fromCells.size(), false);
@ -93,13 +88,11 @@ void Foam::meshToMesh0::calcAddressing()
meshBb.max() + vector(typDim, typDim, typDim)
);
if (debug)
{
Info<< "\nMesh" << endl;
Info<< " bounding box : " << meshBb << endl;
Info<< " bounding box (shifted) : " << shiftedBb << endl;
Info<< " typical dimension :" << shiftedBb.typDim() << endl;
}
DebugInfo
<< "\nMesh" << nl
<< " bounding box : " << meshBb << nl
<< " bounding box (shifted) : " << shiftedBb << nl
<< " typical dimension : " << shiftedBb.typDim() << endl;
indexedOctree<treeDataCell> oc
(
@ -203,11 +196,8 @@ void Foam::meshToMesh0::calcAddressing()
}
}
if (debug)
{
InfoInFunction
<< "Finished calculating mesh-to-mesh cell addressing" << endl;
}
DebugInFunction
<< "Finished calculating mesh-to-mesh cell addressing" << endl;
}