Commit 5779e4fd authored by Henry Weller's avatar Henry Weller
Browse files

Info -> InfoInFunction and updated comments

parent 34d4cfac
......@@ -50,9 +50,7 @@ tmp<d2dt2Scheme<Type>> d2dt2Scheme<Type>::New
{
if (fv::debug)
{
Info<< "d2dt2Scheme<Type>::New(const fvMesh&, Istream&) : "
"constructing d2dt2Scheme<Type>"
<< endl;
InfoInFunction << "Constructing d2dt2Scheme<Type>" << endl;
}
if (schemeData.eof())
......
......@@ -456,9 +456,6 @@ SLTSDdtScheme<Type>::fvmDdt
scalarField rDeltaT(SLrDeltaT()().internalField());
Info<< "SLTSDdtScheme<Type>::fvmDdt: max/min rDeltaT "
<< gMax(rDeltaT) << " " << gMin(rDeltaT) << endl;
fvm.diag() = rDeltaT*mesh().V();
if (mesh().moving())
......
......@@ -50,9 +50,7 @@ tmp<ddtScheme<Type>> ddtScheme<Type>::New
{
if (fv::debug)
{
Info<< "ddtScheme<Type>::New(const fvMesh&, Istream&) : "
"constructing ddtScheme<Type>"
<< endl;
InfoInFunction << "Constructing ddtScheme<Type>" << endl;
}
if (schemeData.eof())
......@@ -166,7 +164,8 @@ tmp<surfaceScalarField> ddtScheme<Type>::fvcDdtPhiCoeff
if (debug > 1)
{
Info<< "ddtCouplingCoeff mean max min = "
InfoInFunction
<< "ddtCouplingCoeff mean max min = "
<< gAverage(ddtCouplingCoeff.internalField())
<< " " << gMax(ddtCouplingCoeff.internalField())
<< " " << gMin(ddtCouplingCoeff.internalField())
......
......@@ -51,9 +51,7 @@ tmp<divScheme<Type>> divScheme<Type>::New
{
if (fv::debug)
{
Info<< "divScheme<Type>::New(const fvMesh&, Istream&) : "
"constructing divScheme<Type>"
<< endl;
InfoInFunction << "Constructing divScheme<Type>" << endl;
}
if (schemeData.eof())
......
......@@ -54,9 +54,7 @@ void Foam::fv::LeastSquaresVectors<Stencil>::calcLeastSquaresVectors()
{
if (debug)
{
Info<< "LeastSquaresVectors::calcLeastSquaresVectors() :"
<< "Calculating least square gradient vectors"
<< endl;
InfoInFunction << "Calculating least square gradient vectors" << endl;
}
const fvMesh& mesh = this->mesh_;
......@@ -100,9 +98,8 @@ void Foam::fv::LeastSquaresVectors<Stencil>::calcLeastSquaresVectors()
if (debug)
{
Info<< "LeastSquaresVectors::calcLeastSquaresVectors() :"
<< "Finished calculating least square gradient vectors"
<< endl;
InfoInFunction
<< "Finished calculating least square gradient vectors" << endl;
}
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -84,9 +84,7 @@ void Foam::leastSquaresVectors::calcLeastSquaresVectors()
{
if (debug)
{
Info<< "leastSquaresVectors::calcLeastSquaresVectors() :"
<< "Calculating least square gradient vectors"
<< endl;
InfoInFunction << "Calculating least square gradient vectors" << endl;
}
const fvMesh& mesh = mesh_;
......@@ -170,9 +168,8 @@ void Foam::leastSquaresVectors::calcLeastSquaresVectors()
if (debug)
{
Info<< "leastSquaresVectors::calcLeastSquaresVectors() :"
<< "Finished calculating least square gradient vectors"
<< endl;
InfoInFunction
<<"Finished calculating least square gradient vectors" << endl;
}
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -84,9 +84,7 @@ void Foam::leastSquaresVectors::calcLeastSquaresVectors()
{
if (debug)
{
Info<< "leastSquaresVectors::calcLeastSquaresVectors() :"
<< "Calculating least square gradient vectors"
<< endl;
InfoInFunction << "Calculating least square gradient vectors" << endl;
}
const fvMesh& mesh = mesh_;
......@@ -209,9 +207,8 @@ void Foam::leastSquaresVectors::calcLeastSquaresVectors()
if (debug)
{
Info<< "leastSquaresVectors::calcLeastSquaresVectors() :"
<< "Finished calculating least square gradient vectors"
<< endl;
InfoInFunction
<< "Finished calculating least square gradient vectors" << endl;
}
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -84,9 +84,7 @@ void Foam::leastSquaresVectors::calcLeastSquaresVectors()
{
if (debug)
{
Info<< "leastSquaresVectors::calcLeastSquaresVectors() :"
<< "Calculating least square gradient vectors"
<< endl;
InfoInFunction << "Calculating least square gradient vectors" << endl;
}
const fvMesh& mesh = mesh_;
......@@ -166,9 +164,8 @@ void Foam::leastSquaresVectors::calcLeastSquaresVectors()
if (debug)
{
Info<< "leastSquaresVectors::calcLeastSquaresVectors() :"
<< "Finished calculating least square gradient vectors"
<< endl;
InfoInFunction
<< "Finished calculating least square gradient vectors" << endl;
}
}
......
......@@ -49,9 +49,7 @@ tmp<laplacianScheme<Type, GType>> laplacianScheme<Type, GType>::New
{
if (fv::debug)
{
Info<< "laplacianScheme<Type, GType>::New(const fvMesh&, Istream&) : "
"constructing laplacianScheme<Type, GType>"
<< endl;
InfoInFunction << "Constructing laplacianScheme<Type, GType>" << endl;
}
if (schemeData.eof())
......
......@@ -52,16 +52,15 @@ Foam::CentredFitSnGradData<Polynomial>::CentredFitSnGradData
{
if (debug)
{
Info<< "Contructing CentredFitSnGradData<Polynomial>" << endl;
InfoInFunction
<< "Contructing CentredFitSnGradData<Polynomial>" << endl;
}
calcFit();
if (debug)
{
Info<< "CentredFitSnGradData<Polynomial>::CentredFitSnGradData() :"
<< "Finished constructing polynomialFit data"
<< endl;
Info<< " Finished constructing polynomialFit data" << endl;
}
}
......
......@@ -76,7 +76,8 @@ limitedSnGrad<Type>::correction
if (fv::debug)
{
Info<< "limitedSnGrad :: limiter min: " << min(limiter.internalField())
InfoInFunction
<< "limiter min: " << min(limiter.internalField())
<< " max: "<< max(limiter.internalField())
<< " avg: " << average(limiter.internalField()) << endl;
}
......
......@@ -280,10 +280,8 @@ Foam::fvMatrix<Type>::fvMatrix
{
if (debug)
{
Info<< "fvMatrix<Type>(GeometricField<Type, fvPatchField, volMesh>&,"
" const dimensionSet&) : "
"constructing fvMatrix<Type> for field " << psi_.name()
<< endl;
InfoInFunction
<< "Constructing fvMatrix<Type> for field " << psi_.name() << endl;
}
// Initialise coupling coefficients
......@@ -334,9 +332,8 @@ Foam::fvMatrix<Type>::fvMatrix(const fvMatrix<Type>& fvm)
{
if (debug)
{
Info<< "fvMatrix<Type>::fvMatrix(const fvMatrix<Type>&) : "
<< "copying fvMatrix<Type> for field " << psi_.name()
<< endl;
InfoInFunction
<< "Copying fvMatrix<Type> for field " << psi_.name() << endl;
}
if (fvm.faceFluxCorrectionPtr_)
......@@ -381,9 +378,8 @@ Foam::fvMatrix<Type>::fvMatrix(const tmp<fvMatrix<Type>>& tfvm)
{
if (debug)
{
Info<< "fvMatrix<Type>::fvMatrix(const tmp<fvMatrix<Type>>&) : "
<< "copying fvMatrix<Type> for field " << psi_.name()
<< endl;
InfoInFunction
<< "Copying fvMatrix<Type> for field " << psi_.name() << endl;
}
if (tfvm().faceFluxCorrectionPtr_)
......@@ -425,10 +421,8 @@ Foam::fvMatrix<Type>::fvMatrix
{
if (debug)
{
Info<< "fvMatrix<Type>"
"(GeometricField<Type, fvPatchField, volMesh>&, Istream&) : "
"constructing fvMatrix<Type> for field " << psi_.name()
<< endl;
InfoInFunction
<< "Constructing fvMatrix<Type> for field " << psi_.name() << endl;
}
// Initialise coupling coefficients
......@@ -463,9 +457,8 @@ Foam::fvMatrix<Type>::~fvMatrix()
{
if (debug)
{
Info<< "fvMatrix<Type>::~fvMatrix<Type>() : "
<< "destroying fvMatrix<Type> for field " << psi_.name()
<< endl;
InfoInFunction
<< "Destroying fvMatrix<Type> for field " << psi_.name() << endl;
}
if (faceFluxCorrectionPtr_)
......@@ -526,8 +519,7 @@ void Foam::fvMatrix<Type>::relax(const scalar alpha)
if (debug)
{
InfoInFunction
<< "Relaxing " << psi_.name() << " by " << alpha
<< endl;
<< "Relaxing " << psi_.name() << " by " << alpha << endl;
}
Field<Type>& S = source();
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -125,8 +125,7 @@ void Foam::fvMesh::clearAddressing(const bool isMeshUpdate)
{
if (debug)
{
Info<< "fvMesh::clearAddressing(const bool) :"
<< " isMeshUpdate:" << isMeshUpdate << endl;
InfoInFunction << "isMeshUpdate: " << isMeshUpdate << endl;
}
if (isMeshUpdate)
......@@ -167,7 +166,7 @@ void Foam::fvMesh::storeOldVol(const scalarField& V)
{
if (debug)
{
Info<< "fvMesh::storeOldVol(const scalarField&) :"
InfoInFunction
<< " Storing old time volumes since from time " << curTimeIndex_
<< " and time now " << time().timeIndex()
<< " V:" << V.size()
......@@ -214,12 +213,12 @@ void Foam::fvMesh::storeOldVol(const scalarField& V)
if (debug)
{
Info<< "fvMesh::storeOldVol() :"
InfoInFunction
<< " Stored old time volumes V0:" << V0Ptr_->size()
<< endl;
if (V00Ptr_)
{
Info<< "fvMesh::storeOldVol() :"
InfoInFunction
<< " Stored oldold time volumes V00:" << V00Ptr_->size()
<< endl;
}
......@@ -265,8 +264,7 @@ Foam::fvMesh::fvMesh(const IOobject& io)
{
if (debug)
{
Info<< "Constructing fvMesh from IOobject"
<< endl;
InfoInFunction << "Constructing fvMesh from IOobject" << endl;
}
// Check the existance of the cell volumes and read if present
......@@ -376,7 +374,7 @@ Foam::fvMesh::fvMesh
{
if (debug)
{
Info<< "Constructing fvMesh from cellShapes" << endl;
InfoInFunction << "Constructing fvMesh from cellShapes" << endl;
}
}
......@@ -410,7 +408,7 @@ Foam::fvMesh::fvMesh
{
if (debug)
{
Info<< "Constructing fvMesh from components" << endl;
InfoInFunction << "Constructing fvMesh from components" << endl;
}
}
......@@ -443,7 +441,7 @@ Foam::fvMesh::fvMesh
{
if (debug)
{
Info<< "Constructing fvMesh from components" << endl;
InfoInFunction << "Constructing fvMesh from components" << endl;
}
}
......@@ -481,9 +479,7 @@ void Foam::fvMesh::removeFvBoundary()
{
if (debug)
{
Info<< "void fvMesh::removeFvBoundary(): "
<< "Removing boundary patches."
<< endl;
InfoInFunction << "Removing boundary patches." << endl;
}
// Remove fvBoundaryMesh data first.
......@@ -499,8 +495,7 @@ Foam::polyMesh::readUpdateState Foam::fvMesh::readUpdate()
{
if (debug)
{
Info<< "polyMesh::readUpdateState fvMesh::readUpdate() : "
<< "Updating fvMesh. ";
InfoInFunction << "Updating fvMesh. ";
}
polyMesh::readUpdateState state = polyMesh::readUpdate();
......@@ -568,7 +563,7 @@ void Foam::fvMesh::mapFields(const mapPolyMesh& meshMap)
{
if (debug)
{
Info<< "fvMesh::mapFields :"
InfoInFunction
<< " nOldCells:" << meshMap.nOldCells()
<< " nCells:" << nCells()
<< " nOldFaces:" << meshMap.nOldFaces()
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -81,9 +81,7 @@ void fvMesh::makeMagSf() const
{
if (debug)
{
Info<< "void fvMesh::makeMagSf() : "
<< "assembling mag face areas"
<< endl;
InfoInFunction << "Assembling mag face areas" << endl;
}
// It is an error to attempt to recalculate
......@@ -119,9 +117,7 @@ void fvMesh::makeC() const
{
if (debug)
{
Info<< "void fvMesh::makeC() : "
<< "assembling cell centres"
<< endl;
InfoInFunction << "Assembling cell centres" << endl;
}
// It is an error to attempt to recalculate
......@@ -161,9 +157,7 @@ void fvMesh::makeCf() const
{
if (debug)
{
Info<< "void fvMesh::makeCf() : "
<< "assembling face centres"
<< endl;
InfoInFunction << "Assembling face centres" << endl;
}
// It is an error to attempt to recalculate
......@@ -202,9 +196,8 @@ const volScalarField::DimensionedInternalField& fvMesh::V() const
{
if (debug)
{
Info<< "fvMesh::V() const: "
<< "constructing from primitiveMesh::cellVolumes()"
<< endl;
InfoInFunction
<< "Constructing from primitiveMesh::cellVolumes()" << endl;
}
VPtr_ = new slicedVolScalarField::DimensionedInternalField
......@@ -260,9 +253,7 @@ const volScalarField::DimensionedInternalField& fvMesh::V00() const
{
if (debug)
{
Info<< "fvMesh::V00() const: "
<< "constructing from V0"
<< endl;
InfoInFunction << "Constructing from V0" << endl;
}
V00Ptr_ = new DimensionedField<scalar, volMesh>
......@@ -392,9 +383,7 @@ tmp<surfaceVectorField> fvMesh::delta() const
{
if (debug)
{
Info<< "void fvMesh::delta() : "
<< "calculating face deltas"
<< endl;
InfoInFunction << "Calculating face deltas" << endl;
}
tmp<surfaceVectorField> tdelta
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -37,9 +37,7 @@ Foam::autoPtr<Foam::fvPatch> Foam::fvPatch::New
{
if (debug)
{
Info<< "fvPatch::New(const polyPatch&, const fvBoundaryMesh&) : "
<< "constructing fvPatch"
<< endl;
InfoInFunction << "Constructing fvPatch" << endl;
}
polyPatchConstructorTable::iterator cstrIter =
......
......@@ -54,16 +54,14 @@ Foam::CentredFitData<Polynomial>::CentredFitData
{
if (debug)
{
Info<< "Contructing CentredFitData<Polynomial>" << endl;
InfoInFunction << "Contructing CentredFitData<Polynomial>" << endl;
}
calcFit();
if (debug)
{
Info<< "CentredFitData<Polynomial>::CentredFitData() :"
<< "Finished constructing polynomialFit data"
<< endl;
Info<< "Finished constructing polynomialFit data" << endl;
}
}
......
......@@ -55,16 +55,14 @@ Foam::UpwindFitData<Polynomial>::UpwindFitData
{
if (debug)
{
Info<< "Contructing UpwindFitData<Polynomial>" << endl;
InfoInFunction << "Contructing UpwindFitData<Polynomial>" << endl;
}
calcFit();
if (debug)
{
Info<< "UpwindFitData<Polynomial>::UpwindFitData() :"
<< "Finished constructing polynomialFit data"
<< endl;
Info<< " Finished constructing polynomialFit data" << endl;
}
}
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -67,9 +67,7 @@ void Foam::skewCorrectionVectors::calcSkewCorrectionVectors()
{
if (debug)
{
Info<< "surfaceInterpolation::calcSkewCorrectionVectors() : "
<< "Calculating skew correction vectors"
<< endl;
InfoInFunction << "Calculating skew correction vectors" << endl;
}
// Set local references to mesh data
......@@ -135,8 +133,7 @@ void Foam::skewCorrectionVectors::calcSkewCorrectionVectors()
if (debug)
{
Info<< "surfaceInterpolation::calcSkewCorrectionVectors() : "
<< "skew coefficient = " << skewCoeff << endl;
InfoInFunction << "skew coefficient = " << skewCoeff << endl;
}
if (skewCoeff < 1e-5)
......@@ -150,9 +147,7 @@ void Foam::skewCorrectionVectors::calcSkewCorrectionVectors()
if (debug)
{
Info<< "surfaceInterpolation::calcSkewCorrectionVectors() : "
<< "Finished constructing skew correction vectors"
<< endl;
Info<< " Finished constructing skew correction vectors" << endl;
}
}
......
......@@ -89,7 +89,7 @@ Foam::tabulated6DoFAcceleration::acceleration() const
values_
);
Info<< "tabulated6DoFAcceleration::acceleration(): "
InfoInFunction
<< "Time = " << t << " accelerations: " << avs << endl;
return avs;
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -46,8 +46,7 @@ void Foam::ParticleTracks<CloudType>::write()
{
if (debug)
{
Info<< "void Foam::ParticleTracks<CloudType>::write()" << nl
<< "cloupPtr invalid" << endl;
InfoInFunction << "cloupPtr invalid" << endl;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment