Info -> InfoInFunction and updated comments

This commit is contained in:
Henry Weller
2016-01-20 16:21:37 +00:00
parent 34d4cfaca3
commit 5779e4fd16
35 changed files with 134 additions and 234 deletions

View File

@ -60,7 +60,7 @@ Foam::label Foam::AMIInterpolation<SourcePatch, TargetPatch>::calcDistribution
procI = -1;
if (debug)
{
Info<< "AMIInterpolation::calcDistribution: "
InfoInFunction
<< "AMI split across multiple processors" << endl;
}
}
@ -69,7 +69,7 @@ Foam::label Foam::AMIInterpolation<SourcePatch, TargetPatch>::calcDistribution
procI = findIndex(facesPresentOnProc, 1);
if (debug)
{
Info<< "AMIInterpolation::calcDistribution: "
InfoInFunction
<< "AMI local to processor" << procI << endl;
}
}

View File

@ -31,10 +31,8 @@ License
namespace Foam
{
defineTypeNameAndDebug(searchablePlate, 0);
addToRunTimeSelectionTable(searchableSurface, searchablePlate, dict);
defineTypeNameAndDebug(searchablePlate, 0);
addToRunTimeSelectionTable(searchableSurface, searchablePlate, dict);
}
@ -220,7 +218,7 @@ Foam::searchablePlate::searchablePlate
{
if (debug)
{
Info<< "searchablePlate::searchablePlate :"
InfoInFunction
<< " origin:" << origin_
<< " origin+span:" << origin_+span_
<< " normal:" << vector::componentNames[normalDir_]
@ -244,7 +242,7 @@ Foam::searchablePlate::searchablePlate
{
if (debug)
{
Info<< "searchablePlate::searchablePlate :"
InfoInFunction
<< " origin:" << origin_
<< " origin+span:" << origin_+span_
<< " normal:" << vector::componentNames[normalDir_]

View File

@ -98,7 +98,6 @@ addToRunTimeSelectionTable(searchableSurface, triSurfaceMesh, dict);
//}
//- Check file existence
const Foam::fileName& Foam::triSurfaceMesh::checkFile
(
const fileName& fName,
@ -690,10 +689,10 @@ void Foam::triSurfaceMesh::getNormal
if (info[i].hit())
{
label faceI = info[i].index();
//- Cached:
// Cached:
//normal[i] = faceNormals()[faceI];
//- Uncached
// Uncached
normal[i] = s[faceI].normal(pts);
normal[i] /= mag(normal[i]) + VSMALL;
}
@ -784,16 +783,12 @@ void Foam::triSurfaceMesh::getVolumeType
// - use cached volume type per each tree node
volType[pointI] = tree().getVolumeType(pt);
}
// Info<< "octree : " << pt << " = "
// << volumeType::names[volType[pointI]] << endl;
}
indexedOctree<treeDataTriSurface>::perturbTol() = oldTol;
}
//- Write using given format, version and compression
bool Foam::triSurfaceMesh::writeObject
(
IOstream::streamFormat fmt,
@ -815,7 +810,6 @@ bool Foam::triSurfaceMesh::writeObject
return false;
}
//return objectRegistry::writeObject(fmt, ver, cmp);
return true;
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -37,7 +37,7 @@ License
namespace Foam
{
defineTypeNameAndDebug(pointToPointPlanarInterpolation, 0);
defineTypeNameAndDebug(pointToPointPlanarInterpolation, 0);
}
@ -112,7 +112,7 @@ Foam::pointToPointPlanarInterpolation::calcCoordinateSystem
if (debug)
{
Info<< "pointToPointPlanarInterpolation::calcCoordinateSystem :"
InfoInFunction
<< " Used points " << p0 << ' ' << points[index1]
<< ' ' << points[index2]
<< " to define coordinate system with normal " << n << endl;
@ -204,7 +204,7 @@ void Foam::pointToPointPlanarInterpolation::calcWeights
if (debug)
{
Info<< "pointToPointPlanarInterpolation::calcWeights :"
InfoInFunction
<< " Perturbing points with " << perturb_
<< " fraction of a random position inside " << bb
<< " to break any ties on regular meshes."