Info -> InfoInFunction and updated comments

This commit is contained in:
Henry Weller
2016-01-20 17:51:15 +00:00
parent 5779e4fd16
commit aa38e25c92
42 changed files with 201 additions and 460 deletions

View File

@ -103,9 +103,8 @@ Foam::OFstream::OFstream
{ {
if (debug) if (debug)
{ {
Info<< "OFstream::OFstream(const fileName&," InfoInFunction
"streamFormat, versionNumber, compressionType) : " << "Could not open file " << pathname
"could not open file " << pathname
<< "for input\n" << "for input\n"
"in stream " << info() << Foam::endl; "in stream " << info() << Foam::endl;
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -62,10 +62,8 @@ Foam::word Foam::Time::findInstance
{ {
if (debug) if (debug)
{ {
Info<< "Time::findInstance" InfoInFunction
"(const fileName&, const word&" << "Found \"" << name
", const IOobject::readOption, const word&)"
<< " : found \"" << name
<< "\" in " << timeName()/dir << "\" in " << timeName()/dir
<< endl; << endl;
} }
@ -103,10 +101,8 @@ Foam::word Foam::Time::findInstance
{ {
if (debug) if (debug)
{ {
Info<< "Time::findInstance" InfoInFunction
"(const fileName&, const word&" << "Found \"" << name
", const IOobject::readOption, const word&)"
<< " : found \"" << name
<< "\" in " << ts[instanceI].name()/dir << "\" in " << ts[instanceI].name()/dir
<< endl; << endl;
} }
@ -119,10 +115,8 @@ Foam::word Foam::Time::findInstance
{ {
if (debug) if (debug)
{ {
Info<< "Time::findInstance" InfoInFunction
"(const fileName&, const word&" << "Hit stopInstance " << stopInstance
", const IOobject::readOption, const word&)"
<< " : hit stopInstance " << stopInstance
<< endl; << endl;
} }
@ -174,10 +168,8 @@ Foam::word Foam::Time::findInstance
{ {
if (debug) if (debug)
{ {
Info<< "Time::findInstance" InfoInFunction
"(const fileName&, const word&" << "Found \"" << name
", const IOobject::readOption, const word&)"
<< " : found \"" << name
<< "\" in " << constant()/dir << "\" in " << constant()/dir
<< endl; << endl;
} }

View File

@ -43,13 +43,7 @@ readField
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::" InfoInFunction << endl;
"GeometricBoundaryField::readField"
"("
"const DimensionedField<Type, GeoMesh>&, "
"const dictionary&"
")"
<< endl;
} }
@ -230,11 +224,7 @@ GeometricBoundaryField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::" InfoInFunction << endl;
"GeometricBoundaryField::"
"GeometricBoundaryField(const BoundaryMesh&, "
"const DimensionedField<Type>&, const word&)"
<< endl;
} }
forAll(bmesh_, patchi) forAll(bmesh_, patchi)
@ -268,16 +258,7 @@ GeometricBoundaryField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::" InfoInFunction << endl;
"GeometricBoundaryField::"
"GeometricBoundaryField"
"("
"const BoundaryMesh&, "
"const DimensionedField<Type>&, "
"const wordList&, "
"const wordList&"
")"
<< endl;
} }
if if
@ -344,15 +325,7 @@ GeometricBoundaryField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::" InfoInFunction << endl;
"GeometricBoundaryField::"
"GeometricBoundaryField"
"("
"const BoundaryMesh&, "
"const DimensionedField<Type, GeoMesh>&, "
"const PtrLIst<PatchField<Type>>&"
")"
<< endl;
} }
forAll(bmesh_, patchi) forAll(bmesh_, patchi)
@ -376,15 +349,7 @@ GeometricBoundaryField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::" InfoInFunction << endl;
"GeometricBoundaryField::"
"GeometricBoundaryField"
"("
"const DimensionedField<Type, GeoMesh>&, "
"const typename GeometricField<Type, PatchField, GeoMesh>::"
"GeometricBoundaryField&"
")"
<< endl;
} }
forAll(bmesh_, patchi) forAll(bmesh_, patchi)
@ -412,14 +377,7 @@ GeometricBoundaryField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::" InfoInFunction << endl;
"GeometricBoundaryField::"
"GeometricBoundaryField"
"("
"const GeometricField<Type, PatchField, GeoMesh>::"
"GeometricBoundaryField&"
")"
<< endl;
} }
} }
@ -448,9 +406,7 @@ updateCoeffs()
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::" InfoInFunction << endl;
"GeometricBoundaryField::"
"updateCoeffs()" << endl;
} }
forAll(*this, patchi) forAll(*this, patchi)
@ -466,9 +422,7 @@ evaluate()
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::" InfoInFunction << endl;
"GeometricBoundaryField::"
"evaluate()" << endl;
} }
if if

View File

@ -146,7 +146,7 @@ bool Foam::GeometricField<Type, PatchField, GeoMesh>::readOldTimeIfPresent()
{ {
if (debug) if (debug)
{ {
Info<< "Reading old time level for field" InfoInFunction << "Reading old time level for field"
<< endl << this->info() << endl; << endl << this->info() << endl;
} }
@ -189,9 +189,7 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::GeometricField : " InfoInFunction << "Creating temporary" << endl << this->info() << endl;
"creating temporary"
<< endl << this->info() << endl;
} }
readIfPresent(); readIfPresent();
@ -216,9 +214,7 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::GeometricField : " InfoInFunction << "Creating temporary" << endl << this->info() << endl;
"creating temporary"
<< endl << this->info() << endl;
} }
readIfPresent(); readIfPresent();
@ -242,9 +238,7 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::GeometricField : " InfoInFunction << "Creating temporary" << endl << this->info() << endl;
"creating temporary"
<< endl << this->info() << endl;
} }
boundaryField_ == dt.value(); boundaryField_ == dt.value();
@ -271,9 +265,7 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::GeometricField : " InfoInFunction << "Creating temporary" << endl << this->info() << endl;
"creating temporary"
<< endl << this->info() << endl;
} }
boundaryField_ == dt.value(); boundaryField_ == dt.value();
@ -300,9 +292,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::GeometricField : " InfoInFunction
"constructing from components" << "Constructing from components" << endl << this->info() << endl;
<< endl << this->info() << endl;
} }
readIfPresent(); readIfPresent();
@ -338,9 +329,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
if (debug) if (debug)
{ {
Info<< "Finishing read-construct of " InfoInFunction
"GeometricField<Type, PatchField, GeoMesh>" << "Finishing read-construction of" << endl << this->info() << endl;
<< endl << this->info() << endl;
} }
} }
@ -375,8 +365,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
if (debug) if (debug)
{ {
Info<< "Finishing dictionary-construct of " InfoInFunction
"GeometricField<Type, PatchField, GeoMesh>" << "Finishing dictionary-construct of "
<< endl << this->info() << endl; << endl << this->info() << endl;
} }
} }
@ -396,9 +386,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::GeometricField : " InfoInFunction
"constructing as copy" << "Constructing as copy" << endl << this->info() << endl;
<< endl << this->info() << endl;
} }
if (gf.field0Ptr_) if (gf.field0Ptr_)
@ -432,9 +421,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::GeometricField : " InfoInFunction
"constructing as copy" << "Constructing as copy" << endl << this->info() << endl;
<< endl << this->info() << endl;
} }
this->writeOpt() = IOobject::NO_WRITE; this->writeOpt() = IOobject::NO_WRITE;
@ -459,8 +447,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::GeometricField : " InfoInFunction
"constructing as copy resetting IO params" << "Constructing as copy resetting IO params"
<< endl << this->info() << endl; << endl << this->info() << endl;
} }
@ -496,8 +484,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::GeometricField : " InfoInFunction
"constructing from tmp resetting IO params" << "Constructing from tmp resetting IO params"
<< endl << this->info() << endl; << endl << this->info() << endl;
} }
@ -523,8 +511,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::GeometricField : " InfoInFunction
"constructing as copy resetting name" << "Constructing as copy resetting name"
<< endl << this->info() << endl; << endl << this->info() << endl;
} }
@ -560,8 +548,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::GeometricField : " InfoInFunction
"constructing from tmp resetting name" << "Constructing from tmp resetting name"
<< endl << this->info() << endl; << endl << this->info() << endl;
} }
@ -586,8 +574,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::GeometricField : " InfoInFunction
"constructing as copy resetting IO params" << "Constructing as copy resetting IO params"
<< endl << this->info() << endl; << endl << this->info() << endl;
} }
@ -628,8 +616,8 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
{ {
if (debug) if (debug)
{ {
Info<< "GeometricField<Type, PatchField, GeoMesh>::GeometricField : " InfoInFunction
"constructing as copy resetting IO params and patch types" << "Constructing as copy resetting IO params and patch types"
<< endl << this->info() << endl; << endl << this->info() << endl;
} }
@ -721,7 +709,8 @@ void Foam::GeometricField<Type, PatchField, GeoMesh>::storeOldTime() const
if (debug) if (debug)
{ {
Info<< "Storing old time field for field" << endl InfoInFunction
<< "Storing old time field for field" << endl
<< this->info() << endl; << this->info() << endl;
} }
@ -797,7 +786,8 @@ void Foam::GeometricField<Type, PatchField, GeoMesh>::storePrevIter() const
{ {
if (debug) if (debug)
{ {
Info<< "Allocating previous iteration field" << endl InfoInFunction
<< "Allocating previous iteration field" << endl
<< this->info() << endl; << this->info() << endl;
} }

View File

@ -36,11 +36,7 @@ Foam::autoPtr<Foam::pointPatchField<Type>> Foam::pointPatchField<Type>::New
{ {
if (debug) if (debug)
{ {
Info<< "PointPatchField<Type>::" InfoInFunction << "Constructing pointPatchField<Type>" << endl;
"New(const word&, const word&"
", const pointPatch&, const Field<Type>&) : "
"constructing pointPatchField<Type>"
<< endl;
} }
typename pointPatchConstructorTable::iterator cstrIter = typename pointPatchConstructorTable::iterator cstrIter =
@ -116,10 +112,7 @@ Foam::autoPtr<Foam::pointPatchField<Type>> Foam::pointPatchField<Type>::New
{ {
if (debug) if (debug)
{ {
Info<< "PointPatchField<Type>::" InfoInFunction << "Constructing pointPatchField<Type>" << endl;
"New(const pointPatch&, const Field<Type>&, const dictionary&)"
" : constructing pointPatchField<Type>"
<< endl;
} }
word patchFieldType(dict.lookup("type")); word patchFieldType(dict.lookup("type"));
@ -186,8 +179,6 @@ Foam::autoPtr<Foam::pointPatchField<Type>> Foam::pointPatchField<Type>::New
} }
// Return a pointer to a new patch created on freestore from
// a given pointPatchField<Type> mapped onto a new patch
template<class Type> template<class Type>
Foam::autoPtr<Foam::pointPatchField<Type>> Foam::pointPatchField<Type>::New Foam::autoPtr<Foam::pointPatchField<Type>> Foam::pointPatchField<Type>::New
( (
@ -199,12 +190,7 @@ Foam::autoPtr<Foam::pointPatchField<Type>> Foam::pointPatchField<Type>::New
{ {
if (debug) if (debug)
{ {
Info<< "PointPatchField<Type>::" InfoInFunction << "Constructing pointPatchField<Type>" << endl;
"New(const pointPatchField<Type>&,"
" const pointPatch&, const Field<Type>&, "
"const pointPatchFieldMapper&) : "
"constructing pointPatchField<Type>"
<< endl;
} }
typename patchMapperConstructorTable::iterator cstrIter = typename patchMapperConstructorTable::iterator cstrIter =

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -358,10 +358,7 @@ Foam::autoPtr<Foam::GAMGProcAgglomeration> Foam::GAMGProcAgglomeration::New
{ {
if (debug) if (debug)
{ {
Info<< "GAMGProcAgglomeration::New(const word&, GAMGAgglomeration&" InfoInFunction << "Constructing GAMGProcAgglomeration" << endl;
", const dictionary&) : "
"constructing GAMGProcAgglomeration"
<< endl;
} }
GAMGAgglomerationConstructorTable::iterator cstrIter = GAMGAgglomerationConstructorTable::iterator cstrIter =

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -35,10 +35,7 @@ Foam::autoPtr<Foam::facePointPatch> Foam::facePointPatch::New
{ {
if (debug) if (debug)
{ {
Info<< "facePointPatch::New(const polyPatch&, " InfoInFunction << "Constructing facePointPatch" << endl;
<< " const pointBoundaryMesh&) : "
<< "constructing facePointPatch"
<< endl;
} }
polyPatchConstructorTable::iterator cstrIter = polyPatchConstructorTable::iterator cstrIter =

View File

@ -41,9 +41,7 @@ bool Foam::polyMesh::checkFaceOrthogonality
{ {
if (debug) if (debug)
{ {
Info<< "bool polyMesh::checkFaceOrthogonality(" InfoInFunction << "Checking mesh non-orthogonality" << endl;
<< "const bool, labelHashSet*) const: "
<< "checking mesh non-orthogonality" << endl;
} }
const labelList& own = faceOwner(); const labelList& own = faceOwner();
@ -182,9 +180,7 @@ bool Foam::polyMesh::checkFaceSkewness
{ {
if (debug) if (debug)
{ {
Info<< "bool polyMesh::checkFaceSkewnesss(" InfoInFunction << "Checking face skewness" << endl;
<< "const bool, labelHashSet*) const: "
<< "checking face skewness" << endl;
} }
const labelList& own = faceOwner(); const labelList& own = faceOwner();
@ -289,9 +285,7 @@ bool Foam::polyMesh::checkEdgeAlignment
{ {
if (debug) if (debug)
{ {
Info<< "bool polyMesh::checkEdgeAlignment(" InfoInFunction << "Checking edge alignment" << endl;
<< "const bool, const Vector<label>&, labelHashSet*) const: "
<< "checking edge alignment" << endl;
} }
label nDirs = 0; label nDirs = 0;
@ -422,9 +416,7 @@ bool Foam::polyMesh::checkCellDeterminant
if (debug) if (debug)
{ {
Info<< "bool polyMesh::checkCellDeterminant(const bool" InfoInFunction << "Checking for under-determined cells" << endl;
<< ", labelHashSet*) const: "
<< "checking for under-determined cells" << endl;
} }
tmp<scalarField> tcellDeterminant = primitiveMeshTools::cellDeterminant tmp<scalarField> tcellDeterminant = primitiveMeshTools::cellDeterminant
@ -506,9 +498,7 @@ bool Foam::polyMesh::checkFaceWeight
{ {
if (debug) if (debug)
{ {
Info<< "bool polyMesh::checkFaceWeight(const bool" InfoInFunction << "Checking for low face interpolation weights" << endl;
<< ", labelHashSet*) const: "
<< "checking for low face interpolation weights" << endl;
} }
tmp<scalarField> tfaceWght = polyMeshTools::faceWeights tmp<scalarField> tfaceWght = polyMeshTools::faceWeights
@ -601,9 +591,7 @@ bool Foam::polyMesh::checkVolRatio
{ {
if (debug) if (debug)
{ {
Info<< "bool polyMesh::checkVolRatio(const bool" InfoInFunction << "Checking for volume ratio < " << minRatio << endl;
<< ", labelHashSet*) const: "
<< "checking for volume ratio < " << minRatio << endl;
} }
tmp<scalarField> tvolRatio = polyMeshTools::volRatio(*this, cellVols); tmp<scalarField> tvolRatio = polyMeshTools::volRatio(*this, cellVols);
@ -680,19 +668,6 @@ bool Foam::polyMesh::checkVolRatio
} }
//- Could override checkClosedBoundary to not look at (collocated!) coupled
// faces
//bool Foam::polyMesh::checkClosedBoundary(const bool report) const
//{
// return primitiveMesh::checkClosedBoundary
// (
// faceAreas(),
// report,
// syncTools::getInternalOrCollocatedCoupledFaces(*this)
// );
//}
bool Foam::polyMesh::checkFaceOrthogonality bool Foam::polyMesh::checkFaceOrthogonality
( (
const bool report, const bool report,

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -40,10 +40,7 @@ Foam::autoPtr<Foam::polyPatch> Foam::polyPatch::New
{ {
if (debug) if (debug)
{ {
Info<< "polyPatch::New(const word&, const word&, const label, " InfoInFunction << "Constructing polyPatch" << endl;
"const label, const label, const polyBoundaryMesh&) : "
"constructing polyPatch"
<< endl;
} }
wordConstructorTable::iterator cstrIter = wordConstructorTable::iterator cstrIter =
@ -84,9 +81,7 @@ Foam::autoPtr<Foam::polyPatch> Foam::polyPatch::New
{ {
if (debug) if (debug)
{ {
Info<< "polyPatch::New(const word&, const dictionary&, const label, " InfoInFunction << "Constructing polyPatch" << endl;
"const polyBoundaryMesh&) : constructing polyPatch"
<< endl;
} }
word patchType(dict.lookup("type")); word patchType(dict.lookup("type"));
@ -107,9 +102,7 @@ Foam::autoPtr<Foam::polyPatch> Foam::polyPatch::New
{ {
if (debug) if (debug)
{ {
Info<< "polyPatch::New(const word&, const word&, const dictionary&, " InfoInFunction << "Constructing polyPatch" << endl;
"const label, const polyBoundaryMesh&) : constructing polyPatch"
<< endl;
} }
dictionaryConstructorTable::iterator cstrIter = dictionaryConstructorTable::iterator cstrIter =

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -38,9 +38,7 @@ Foam::autoPtr<Foam::cellZone> Foam::cellZone::New
{ {
if (debug) if (debug)
{ {
Info<< "cellZone::New(const word&, const dictionary&, const label, " InfoInFunction << "Constructing cellZone " << name << endl;
"const cellZoneMesh&) : constructing cellZone " << name
<< endl;
} }
const word zoneType(dict.lookup("type")); const word zoneType(dict.lookup("type"));

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -38,9 +38,7 @@ Foam::autoPtr<Foam::faceZone> Foam::faceZone::New
{ {
if (debug) if (debug)
{ {
Info<< "faceZone::New(const word&, const dictionary&, const label, " InfoInFunction << "Constructing faceZone " << name << endl;
"const faceZoneMesh&) : constructing faceZone " << name
<< endl;
} }
const word zoneType(dict.lookup("type")); const word zoneType(dict.lookup("type"));

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -38,9 +38,7 @@ Foam::autoPtr<Foam::pointZone> Foam::pointZone::New
{ {
if (debug) if (debug)
{ {
Info<< "pointZone::New(const word&, const dictionary&, const label, " InfoInFunction << "Constructing pointZone " << name << endl;
"const pointZoneMesh&) : constructing pointZone " << name
<< endl;
} }
const word zoneType(dict.lookup("type")); const word zoneType(dict.lookup("type"));

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -26,7 +26,6 @@ License
#include "PrimitivePatch.H" #include "PrimitivePatch.H"
#include "HashSet.H" #include "HashSet.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template template
@ -42,10 +41,7 @@ calcBdryPoints() const
{ {
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" InfoInFunction << "Calculating boundary points" << endl;
<< "calcBdryPoints() : "
<< "calculating boundary points"
<< endl;
} }
if (boundaryPointsPtr_) if (boundaryPointsPtr_)
@ -74,10 +70,7 @@ calcBdryPoints() const
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" Info<< " Finished." << endl;
<< "calcBdryPoints() : "
<< "finished calculating boundary points"
<< endl;
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -121,10 +121,7 @@ surfaceType() const
{ {
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" InfoInFunction << "Calculating patch topology" << endl;
"surfaceType() : "
"calculating patch topology"
<< endl;
} }
const labelListList& edgeFcs = edgeFaces(); const labelListList& edgeFcs = edgeFaces();
@ -151,10 +148,7 @@ surfaceType() const
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" Info<< " Finished." << endl;
"surfaceType() : "
"finished calculating patch topology"
<< endl;
} }
return pType; return pType;
@ -178,10 +172,7 @@ checkTopology
{ {
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" InfoInFunction << "Checking patch topology" << endl;
"checkTopology(const bool, labelHashSet&) : "
"checking patch topology"
<< endl;
} }
// Check edgeFaces // Check edgeFaces
@ -217,10 +208,7 @@ checkTopology
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" Info<< " Finished." << endl;
"checkTopology(const bool, labelHashSet&) : "
"finished checking patch topology"
<< endl;
} }
return illegalTopo; return illegalTopo;

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -42,9 +42,7 @@ clearGeom()
{ {
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" InfoInFunction << "Clearing geometric data" << endl;
<< "clearGeom() : clearing geometric data"
<< endl;
} }
deleteDemandDrivenData(localPointsPtr_); deleteDemandDrivenData(localPointsPtr_);
@ -67,9 +65,7 @@ clearTopology()
{ {
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" InfoInFunction << "Clearing patch addressing" << endl;
<< "clearTopology() : clearing patch addressing"
<< endl;
} }
// group created and destroyed together // group created and destroyed together
@ -109,10 +105,7 @@ clearPatchMeshAddr()
{ {
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" InfoInFunction << "Clearing patch-mesh addressing" << endl;
<< "clearPatchMeshAddr() : "
<< "clearing patch-mesh addressing"
<< endl;
} }
deleteDemandDrivenData(meshPointsPtr_); deleteDemandDrivenData(meshPointsPtr_);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -45,10 +45,7 @@ calcEdgeLoops() const
{ {
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" InfoInFunction << "Calculating boundary edge loops" << endl;
<< "calcEdgeLoops() : "
<< "calculating boundary edge loops"
<< endl;
} }
if (edgeLoopsPtr_) if (edgeLoopsPtr_)
@ -153,10 +150,7 @@ calcEdgeLoops() const
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" Info<< " Finished." << endl;
<< "calcEdgeLoops() : "
<< "finished calculating boundary edge loops"
<< endl;
} }
} }

View File

@ -46,9 +46,7 @@ calcPointEdges() const
{ {
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" InfoInFunction << "Calculating pointEdges" << endl;
<< "calcPointEdges() : calculating pointEdges"
<< endl;
} }
if (pointEdgesPtr_) if (pointEdgesPtr_)
@ -68,9 +66,7 @@ calcPointEdges() const
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" Info<< " Finished." << endl;
<< "calcPointEdges() finished calculating pointEdges"
<< endl;
} }
} }
@ -88,9 +84,7 @@ calcPointFaces() const
{ {
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" InfoInFunction << "Calculating pointFaces" << endl;
<< "calcPointFaces() : calculating pointFaces"
<< endl;
} }
if (pointFacesPtr_) if (pointFacesPtr_)
@ -135,9 +129,7 @@ calcPointFaces() const
if (debug) if (debug)
{ {
Info<< "PrimitivePatch<Face, FaceList, PointField, PointType>::" Info<< " Finished." << endl;
<< "calcPointFaces() finished calculating pointFaces"
<< endl;
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -38,10 +38,7 @@ Foam::autoPtr<Foam::polyMeshModifier> Foam::polyMeshModifier::New
{ {
if (debug) if (debug)
{ {
Info<< "polyMeshModifier::New(const word&, const dictionary&, " InfoInFunction << "Constructing polyMeshModifier" << endl;
<< "const label, const polyTopoChanger&) : "
<< "constructing polyMeshModifier"
<< endl;
} }
const word modifierType(dict.lookup("type")); const word modifierType(dict.lookup("type"));

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -91,10 +91,7 @@ void Foam::edgeMesh::write
{ {
if (debug) if (debug)
{ {
Info<< "edgeMesh::write" InfoInFunction << "Writing to " << name << endl;
"(const fileName&, const edgeMesh&) : "
"writing to " << name
<< endl;
} }
const word ext = name.ext(); const word ext = name.ext();

View File

@ -36,10 +36,8 @@ Foam::tmp<Foam::fvPatchField<Type>> Foam::fvPatchField<Type>::New
{ {
if (debug) if (debug)
{ {
Info<< "fvPatchField<Type>::New(const word&, const word&, " InfoInFunction
"const fvPatch&, const DimensionedField<Type, volMesh>&) :" << "patchFieldType = " << patchFieldType
" patchFieldType="
<< patchFieldType
<< " : " << p.type() << " : " << p.type()
<< endl; << endl;
} }
@ -113,9 +111,8 @@ Foam::tmp<Foam::fvPatchField<Type>> Foam::fvPatchField<Type>::New
if (debug) if (debug)
{ {
Info<< "fvPatchField<Type>::New(const fvPatch&, " InfoInFunction
"const DimensionedField<Type, volMesh>&, " << "patchFieldType = " << patchFieldType
"const dictionary&) : patchFieldType=" << patchFieldType
<< endl; << endl;
} }
@ -182,11 +179,7 @@ Foam::tmp<Foam::fvPatchField<Type>> Foam::fvPatchField<Type>::New
{ {
if (debug) if (debug)
{ {
Info<< "fvPatchField<Type>::New(const fvPatchField<Type>&, " InfoInFunction << "Constructing fvPatchField<Type>" << endl;
"const fvPatch&, const DimensionedField<Type, volMesh>&, "
"const fvPatchFieldMapper&) : "
"constructing fvPatchField<Type>"
<< endl;
} }
typename patchMapperConstructorTable::iterator cstrIter = typename patchMapperConstructorTable::iterator cstrIter =

View File

@ -23,15 +23,10 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
template<class Type> template<class Type>
tmp<fvsPatchField<Type>> fvsPatchField<Type>::New Foam::tmp<Foam::fvsPatchField<Type>> Foam::fvsPatchField<Type>::New
( (
const word& patchFieldType, const word& patchFieldType,
const word& actualPatchType, const word& actualPatchType,
@ -41,10 +36,7 @@ tmp<fvsPatchField<Type>> fvsPatchField<Type>::New
{ {
if (debug) if (debug)
{ {
Info<< "fvsPatchField<Type>::New(const word&, const word&" InfoInFunction << "Constructing fvsPatchField<Type>" << endl;
", const fvPatch&, const Field<Type>&) : "
"constructing fvsPatchField<Type>"
<< endl;
} }
typename patchConstructorTable::iterator cstrIter = typename patchConstructorTable::iterator cstrIter =
@ -86,7 +78,7 @@ tmp<fvsPatchField<Type>> fvsPatchField<Type>::New
template<class Type> template<class Type>
tmp<fvsPatchField<Type>> fvsPatchField<Type>::New Foam::tmp<Foam::fvsPatchField<Type>> Foam::fvsPatchField<Type>::New
( (
const word& patchFieldType, const word& patchFieldType,
const fvPatch& p, const fvPatch& p,
@ -98,7 +90,7 @@ tmp<fvsPatchField<Type>> fvsPatchField<Type>::New
template<class Type> template<class Type>
tmp<fvsPatchField<Type>> fvsPatchField<Type>::New Foam::tmp<Foam::fvsPatchField<Type>> Foam::fvsPatchField<Type>::New
( (
const fvPatch& p, const fvPatch& p,
const DimensionedField<Type, surfaceMesh>& iF, const DimensionedField<Type, surfaceMesh>& iF,
@ -107,10 +99,7 @@ tmp<fvsPatchField<Type>> fvsPatchField<Type>::New
{ {
if (debug) if (debug)
{ {
Info<< "fvsPatchField<Type>::New(const fvPatch&, const Field<Type>&, " InfoInFunction << "Constructing fvsPatchField<Type>" << endl;
"const dictionary&) : "
"constructing fvsPatchField<Type>"
<< endl;
} }
const word patchFieldType(dict.lookup("type")); const word patchFieldType(dict.lookup("type"));
@ -167,10 +156,8 @@ tmp<fvsPatchField<Type>> fvsPatchField<Type>::New
} }
// Return a pointer to a new patch created on freestore from
// a given fvsPatchField<Type> mapped onto a new patch
template<class Type> template<class Type>
tmp<fvsPatchField<Type>> fvsPatchField<Type>::New Foam::tmp<Foam::fvsPatchField<Type>> Foam::fvsPatchField<Type>::New
( (
const fvsPatchField<Type>& ptf, const fvsPatchField<Type>& ptf,
const fvPatch& p, const fvPatch& p,
@ -180,11 +167,7 @@ tmp<fvsPatchField<Type>> fvsPatchField<Type>::New
{ {
if (debug) if (debug)
{ {
Info<< "fvsPatchField<Type>::New(const fvsPatchField<Type>&," InfoInFunction << "Constructing fvsPatchField<Type>" << endl;
" const fvPatch&, const Field<Type>&, "
"const fvPatchFieldMapper&) : "
"constructing fvsPatchField<Type>"
<< endl;
} }
typename patchMapperConstructorTable::iterator cstrIter = typename patchMapperConstructorTable::iterator cstrIter =
@ -213,8 +196,4 @@ tmp<fvsPatchField<Type>> fvsPatchField<Type>::New
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -63,10 +63,7 @@ tmp<convectionScheme<Type>> convectionScheme<Type>::New
{ {
if (fv::debug) if (fv::debug)
{ {
Info<< "convectionScheme<Type>::New" InfoInFunction << "Constructing convectionScheme<Type>" << endl;
"(const fvMesh&, const surfaceScalarField&, Istream&) : "
"constructing convectionScheme<Type>"
<< endl;
} }
if (schemeData.eof()) if (schemeData.eof())
@ -112,12 +109,7 @@ tmp<convectionScheme<Type>> convectionScheme<Type>::New
{ {
if (fv::debug) if (fv::debug)
{ {
Info<< "convectionScheme<Type>::New" InfoInFunction << "Constructing convectionScheme<Type>" << endl;
"(const fvMesh&, "
"const typename multivariateSurfaceInterpolationScheme<Type>"
"::fieldTable&, const surfaceScalarField&, Istream&) : "
"constructing convectionScheme<Type>"
<< endl;
} }
if (schemeData.eof()) if (schemeData.eof())

View File

@ -38,10 +38,7 @@ Foam::tmp<Foam::fv::gradScheme<Type>> Foam::fv::gradScheme<Type>::New
{ {
if (fv::debug) if (fv::debug)
{ {
Info<< "gradScheme<Type>::New" InfoInFunction << "Constructing gradScheme<Type>" << endl;
"(const fvMesh& mesh, Istream& schemeData) : "
"constructing gradScheme<Type>"
<< endl;
} }
if (schemeData.eof()) if (schemeData.eof())

View File

@ -50,9 +50,7 @@ tmp<snGradScheme<Type>> snGradScheme<Type>::New
{ {
if (fv::debug) if (fv::debug)
{ {
Info<< "snGradScheme<Type>::New(const fvMesh&, Istream&)" InfoInFunction << "Constructing snGradScheme<Type>" << endl;
" : constructing snGradScheme<Type>"
<< endl;
} }
if (schemeData.eof()) if (schemeData.eof())
@ -171,8 +169,6 @@ snGradScheme<Type>::sndGrad
} }
//- Return the face-snGrad of the given cell field
// with explicit correction
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>
snGradScheme<Type>::snGrad snGradScheme<Type>::snGrad
@ -194,8 +190,6 @@ snGradScheme<Type>::snGrad
} }
//- Return the face-snGrad of the given cell field
// with explicit correction
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>
snGradScheme<Type>::snGrad snGradScheme<Type>::snGrad

View File

@ -33,20 +33,13 @@ License
#include "cyclicFvPatchFields.H" #include "cyclicFvPatchFields.H"
#include "cyclicAMIFvPatchFields.H" #include "cyclicAMIFvPatchFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
void fvMesh::makeSf() const void Foam::fvMesh::makeSf() const
{ {
if (debug) if (debug)
{ {
Info<< "void fvMesh::makeSf() : " InfoInFunction << "Assembling face areas" << endl;
<< "assembling face areas"
<< endl;
} }
// It is an error to attempt to recalculate // It is an error to attempt to recalculate
@ -77,7 +70,7 @@ void fvMesh::makeSf() const
} }
void fvMesh::makeMagSf() const void Foam::fvMesh::makeMagSf() const
{ {
if (debug) if (debug)
{ {
@ -113,7 +106,7 @@ void fvMesh::makeMagSf() const
} }
void fvMesh::makeC() const void Foam::fvMesh::makeC() const
{ {
if (debug) if (debug)
{ {
@ -153,7 +146,7 @@ void fvMesh::makeC() const
} }
void fvMesh::makeCf() const void Foam::fvMesh::makeCf() const
{ {
if (debug) if (debug)
{ {
@ -190,7 +183,7 @@ void fvMesh::makeCf() const
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
const volScalarField::DimensionedInternalField& fvMesh::V() const const Foam::volScalarField::DimensionedInternalField& Foam::fvMesh::V() const
{ {
if (!VPtr_) if (!VPtr_)
{ {
@ -221,7 +214,7 @@ const volScalarField::DimensionedInternalField& fvMesh::V() const
} }
const volScalarField::DimensionedInternalField& fvMesh::V0() const const Foam::volScalarField::DimensionedInternalField& Foam::fvMesh::V0() const
{ {
if (!V0Ptr_) if (!V0Ptr_)
{ {
@ -234,7 +227,7 @@ const volScalarField::DimensionedInternalField& fvMesh::V0() const
} }
volScalarField::DimensionedInternalField& fvMesh::setV0() Foam::volScalarField::DimensionedInternalField& Foam::fvMesh::setV0()
{ {
if (!V0Ptr_) if (!V0Ptr_)
{ {
@ -247,7 +240,7 @@ volScalarField::DimensionedInternalField& fvMesh::setV0()
} }
const volScalarField::DimensionedInternalField& fvMesh::V00() const const Foam::volScalarField::DimensionedInternalField& Foam::fvMesh::V00() const
{ {
if (!V00Ptr_) if (!V00Ptr_)
{ {
@ -278,7 +271,8 @@ const volScalarField::DimensionedInternalField& fvMesh::V00() const
} }
tmp<volScalarField::DimensionedInternalField> fvMesh::Vsc() const Foam::tmp<Foam::volScalarField::DimensionedInternalField>
Foam::fvMesh::Vsc() const
{ {
if (moving() && time().subCycling()) if (moving() && time().subCycling())
{ {
@ -306,7 +300,8 @@ tmp<volScalarField::DimensionedInternalField> fvMesh::Vsc() const
} }
tmp<volScalarField::DimensionedInternalField> fvMesh::Vsc0() const Foam::tmp<Foam::volScalarField::DimensionedInternalField>
Foam::fvMesh::Vsc0() const
{ {
if (moving() && time().subCycling()) if (moving() && time().subCycling())
{ {
@ -335,7 +330,7 @@ tmp<volScalarField::DimensionedInternalField> fvMesh::Vsc0() const
} }
const surfaceVectorField& fvMesh::Sf() const const Foam::surfaceVectorField& Foam::fvMesh::Sf() const
{ {
if (!SfPtr_) if (!SfPtr_)
{ {
@ -346,7 +341,7 @@ const surfaceVectorField& fvMesh::Sf() const
} }
const surfaceScalarField& fvMesh::magSf() const const Foam::surfaceScalarField& Foam::fvMesh::magSf() const
{ {
if (!magSfPtr_) if (!magSfPtr_)
{ {
@ -357,7 +352,7 @@ const surfaceScalarField& fvMesh::magSf() const
} }
const volVectorField& fvMesh::C() const const Foam::volVectorField& Foam::fvMesh::C() const
{ {
if (!CPtr_) if (!CPtr_)
{ {
@ -368,7 +363,7 @@ const volVectorField& fvMesh::C() const
} }
const surfaceVectorField& fvMesh::Cf() const const Foam::surfaceVectorField& Foam::fvMesh::Cf() const
{ {
if (!CfPtr_) if (!CfPtr_)
{ {
@ -379,7 +374,7 @@ const surfaceVectorField& fvMesh::Cf() const
} }
tmp<surfaceVectorField> fvMesh::delta() const Foam::tmp<Foam::surfaceVectorField> Foam::fvMesh::delta() const
{ {
if (debug) if (debug)
{ {
@ -424,7 +419,7 @@ tmp<surfaceVectorField> fvMesh::delta() const
} }
const surfaceScalarField& fvMesh::phi() const const Foam::surfaceScalarField& Foam::fvMesh::phi() const
{ {
if (!phiPtr_) if (!phiPtr_)
{ {
@ -444,7 +439,7 @@ const surfaceScalarField& fvMesh::phi() const
} }
surfaceScalarField& fvMesh::setPhi() Foam::surfaceScalarField& Foam::fvMesh::setPhi()
{ {
if (!phiPtr_) if (!phiPtr_)
{ {
@ -457,8 +452,4 @@ surfaceScalarField& fvMesh::setPhi()
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -40,10 +40,8 @@ Foam::limitedSurfaceInterpolationScheme<Type>::New
{ {
if (surfaceInterpolation::debug) if (surfaceInterpolation::debug)
{ {
Info<< "limitedSurfaceInterpolationScheme<Type>::" InfoInFunction
"New(const fvMesh&, Istream&)" << "Constructing limitedSurfaceInterpolationScheme<Type>" << endl;
" : constructing limitedSurfaceInterpolationScheme<Type>"
<< endl;
} }
if (schemeData.eof()) if (schemeData.eof())
@ -90,9 +88,8 @@ Foam::limitedSurfaceInterpolationScheme<Type>::New
{ {
if (surfaceInterpolation::debug) if (surfaceInterpolation::debug)
{ {
Info<< "limitedSurfaceInterpolationScheme<Type>::New" InfoInFunction
"(const fvMesh&, const surfaceScalarField&, Istream&) : " << "Constructing limitedSurfaceInterpolationScheme<Type>"
"constructing limitedSurfaceInterpolationScheme<Type>"
<< endl; << endl;
} }

View File

@ -33,7 +33,6 @@ Description
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
//- Construct from face-flux field and coefficient
template<class Type> template<class Type>
Foam::multivariateSurfaceInterpolationScheme<Type>:: Foam::multivariateSurfaceInterpolationScheme<Type>::
multivariateSurfaceInterpolationScheme multivariateSurfaceInterpolationScheme
@ -63,11 +62,8 @@ Foam::multivariateSurfaceInterpolationScheme<Type>::New
{ {
if (fv::debug) if (fv::debug)
{ {
Info<< "multivariateSurfaceInterpolationScheme<Type>::New" InfoInFunction
"(const fvMesh& mesh, const fieldTable&, " << "Constructing surfaceInterpolationScheme<Type>" << endl;
"const surfaceScalarField&, Istream&) : "
"constructing surfaceInterpolationScheme<Type>"
<< endl;
} }
const word schemeName(schemeData); const word schemeName(schemeData);

View File

@ -54,11 +54,7 @@ Foam::surfaceInterpolationScheme<Type>::New
if (surfaceInterpolation::debug || surfaceInterpolationScheme<Type>::debug) if (surfaceInterpolation::debug || surfaceInterpolationScheme<Type>::debug)
{ {
Info<< "surfaceInterpolationScheme<Type>::New" InfoInFunction << "Discretisation scheme = " << schemeName << endl;
"(const fvMesh&, Istream&)"
" : discretisation scheme === "
<< schemeName
<< endl;
} }
typename MeshConstructorTable::iterator constructorIter = typename MeshConstructorTable::iterator constructorIter =
@ -105,11 +101,8 @@ Foam::surfaceInterpolationScheme<Type>::New
if (surfaceInterpolation::debug || surfaceInterpolationScheme<Type>::debug) if (surfaceInterpolation::debug || surfaceInterpolationScheme<Type>::debug)
{ {
Info<< "surfaceInterpolationScheme<Type>::New" InfoInFunction
"(const fvMesh&, const surfaceScalarField&, Istream&)" << "Discretisation scheme = " << schemeName << endl;
" : discretisation scheme = "
<< schemeName
<< endl;
} }
typename MeshFluxConstructorTable::iterator constructorIter = typename MeshFluxConstructorTable::iterator constructorIter =
@ -151,11 +144,8 @@ Foam::surfaceInterpolationScheme<Type>::interpolate
{ {
if (surfaceInterpolation::debug) if (surfaceInterpolation::debug)
{ {
Info<< "surfaceInterpolationScheme<Type>::uncorrectedInterpolate" InfoInFunction
"(const GeometricField<Type, fvPatchField, volMesh>&, " << "Interpolating "
"const tmp<surfaceScalarField>&, "
"const tmp<surfaceScalarField>&) : "
"interpolating "
<< vf.type() << " " << vf.type() << " "
<< vf.name() << vf.name()
<< " from cells to faces " << " from cells to faces "
@ -234,10 +224,8 @@ Foam::surfaceInterpolationScheme<Type>::interpolate
{ {
if (surfaceInterpolation::debug) if (surfaceInterpolation::debug)
{ {
Info<< "surfaceInterpolationScheme<Type>::interpolate" InfoInFunction
"(const GeometricField<Type, fvPatchField, volMesh>&, " << "Interpolating "
"const tmp<surfaceScalarField>&) : "
"interpolating "
<< vf.type() << " " << vf.type() << " "
<< vf.name() << vf.name()
<< " from cells to faces " << " from cells to faces "
@ -310,9 +298,8 @@ Foam::surfaceInterpolationScheme<Type>::interpolate
{ {
if (surfaceInterpolation::debug) if (surfaceInterpolation::debug)
{ {
Info<< "surfaceInterpolationScheme<Type>::interpolate" InfoInFunction
"(const GeometricField<Type, fvPatchField, volMesh>&) : " << "Interpolating "
"interpolating "
<< vf.type() << " " << vf.type() << " "
<< vf.name() << vf.name()
<< " from cells to faces" << " from cells to faces"

View File

@ -402,8 +402,7 @@ void Foam::Cloud<ParticleType>::autoMap
{ {
if (cloud::debug) if (cloud::debug)
{ {
Info<< "Cloud<ParticleType>::autoMap(TrackData&, const mapPolyMesh&) " InfoInFunction << "for lagrangian cloud " << cloud::name() << endl;
<< "for lagrangian cloud " << cloud::name() << endl;
} }
const labelList& reverseCellMap = mapper.reverseCellMap(); const labelList& reverseCellMap = mapper.reverseCellMap();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -130,8 +130,6 @@ void Foam::particle::transformProperties(const vector&)
Foam::scalar Foam::particle::wallImpactDistance(const vector&) const Foam::scalar Foam::particle::wallImpactDistance(const vector&) const
{ {
Info<< "particle::wallImpactDistance" << endl;
return 0.0; return 0.0;
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -139,9 +139,8 @@ Foam::coordinateSystem::coordinateSystem
if (debug) if (debug)
{ {
Info<< "coordinateSystem::coordinateSystem" InfoInFunction
"(const objectRegistry&, const dictionary&):" << "Using global coordinate system: "
<< nl << "using global coordinate system: "
<< key << "=" << index << endl; << key << "=" << index << endl;
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -478,8 +478,9 @@ void Foam::mappedPatchBase::findSamples
if (debug) if (debug)
{ {
Info<< "mappedPatchBase::findSamples on mesh " << sampleRegion() InfoInFunction
<< " : " << endl; << "mesh " << sampleRegion() << " : " << endl;
forAll(nearest, sampleI) forAll(nearest, sampleI)
{ {
label procI = nearest[sampleI].second().second(); label procI = nearest[sampleI].second().second();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -243,7 +243,7 @@ void reactingOneDim::solveContinuity()
{ {
if (debug) if (debug)
{ {
Info<< "reactingOneDim::solveContinuity()" << endl; InfoInFunction << endl;
} }
const scalarField mass0 = rho_*regionMesh().V(); const scalarField mass0 = rho_*regionMesh().V();
@ -275,7 +275,7 @@ void reactingOneDim::solveSpeciesMass()
{ {
if (debug) if (debug)
{ {
Info<< "reactingOneDim::solveSpeciesMass()" << endl; InfoInFunction << endl;
} }
volScalarField Yt(0.0*Ys_[0]); volScalarField Yt(0.0*Ys_[0]);
@ -316,7 +316,7 @@ void reactingOneDim::solveEnergy()
{ {
if (debug) if (debug)
{ {
Info<< "reactingOneDim::solveEnergy()" << endl; InfoInFunction << endl;
} }
tmp<volScalarField> alpha(solidThermo_.alpha()); tmp<volScalarField> alpha(solidThermo_.alpha());

View File

@ -83,7 +83,7 @@ void kinematicSingleLayer::resetPrimaryRegionSourceTerms()
{ {
if (debug) if (debug)
{ {
Info<< "kinematicSingleLayer::resetPrimaryRegionSourceTerms()" << endl; InfoInFunction << endl;
} }
rhoSpPrimary_ == dimensionedScalar("zero", rhoSp_.dimensions(), 0.0); rhoSpPrimary_ == dimensionedScalar("zero", rhoSp_.dimensions(), 0.0);
@ -96,8 +96,7 @@ void kinematicSingleLayer::transferPrimaryRegionThermoFields()
{ {
if (debug) if (debug)
{ {
Info<< "kinematicSingleLayer::" InfoInFunction << endl;
<< "transferPrimaryRegionThermoFields()" << endl;
} }
// Update fields from primary region via direct mapped // Update fields from primary region via direct mapped
@ -113,8 +112,7 @@ void kinematicSingleLayer::transferPrimaryRegionSourceFields()
{ {
if (debug) if (debug)
{ {
Info<< "kinematicSingleLayer::" InfoInFunction << endl;
<< "transferPrimaryRegionSourceFields()" << endl;
} }
// Convert accummulated source terms into per unit area per unit time // Convert accummulated source terms into per unit area per unit time
@ -201,7 +199,7 @@ void kinematicSingleLayer::updateSubmodels()
{ {
if (debug) if (debug)
{ {
Info<< "kinematicSingleLayer::updateSubmodels()" << endl; InfoInFunction << endl;
} }
// Update injection model - mass returned is mass available for injection // Update injection model - mass returned is mass available for injection
@ -240,7 +238,8 @@ void kinematicSingleLayer::continuityCheck()
cumulativeContErr_ += globalContErr; cumulativeContErr_ += globalContErr;
Info<< "Surface film: " << type() << nl InfoInFunction
<< "Surface film: " << type() << nl
<< " time step continuity errors: sum local = " << " time step continuity errors: sum local = "
<< sumLocalContErr << ", global = " << globalContErr << sumLocalContErr << ", global = " << globalContErr
<< ", cumulative = " << cumulativeContErr_ << endl; << ", cumulative = " << cumulativeContErr_ << endl;
@ -252,7 +251,7 @@ void kinematicSingleLayer::solveContinuity()
{ {
if (debug) if (debug)
{ {
Info<< "kinematicSingleLayer::solveContinuity()" << endl; InfoInFunction << endl;
} }
solve solve
@ -290,7 +289,7 @@ tmp<Foam::fvVectorMatrix> kinematicSingleLayer::solveMomentum
{ {
if (debug) if (debug)
{ {
Info<< "kinematicSingleLayer::solveMomentum()" << endl; InfoInFunction << endl;
} }
// Momentum // Momentum
@ -349,7 +348,7 @@ void kinematicSingleLayer::solveThickness
{ {
if (debug) if (debug)
{ {
Info<< "kinematicSingleLayer::solveThickness()" << endl; InfoInFunction << endl;
} }
volScalarField rUA(1.0/UEqn.A()); volScalarField rUA(1.0/UEqn.A());
@ -836,7 +835,8 @@ void kinematicSingleLayer::addSources
{ {
if (debug) if (debug)
{ {
Info<< "\nSurface film: " << type() << ": adding to film source:" << nl InfoInFunction
<< "\nSurface film: " << type() << ": adding to film source:" << nl
<< " mass = " << massSource << nl << " mass = " << massSource << nl
<< " momentum = " << momentumSource << nl << " momentum = " << momentumSource << nl
<< " pressure = " << pressureSource << endl; << " pressure = " << pressureSource << endl;
@ -854,7 +854,7 @@ void kinematicSingleLayer::preEvolveRegion()
{ {
if (debug) if (debug)
{ {
Info<< "kinematicSingleLayer::preEvolveRegion()" << endl; InfoInFunction << endl;
} }
surfaceFilmModel::preEvolveRegion(); surfaceFilmModel::preEvolveRegion();
@ -877,7 +877,7 @@ void kinematicSingleLayer::evolveRegion()
{ {
if (debug) if (debug)
{ {
Info<< "kinematicSingleLayer::evolveRegion()" << endl; InfoInFunction << endl;
} }
// Update film coverage indicator // Update film coverage indicator

View File

@ -89,7 +89,7 @@ void thermoSingleLayer::resetPrimaryRegionSourceTerms()
{ {
if (debug) if (debug)
{ {
Info<< "thermoSingleLayer::resetPrimaryRegionSourceTerms()" << endl; InfoInFunction << endl;
} }
kinematicSingleLayer::resetPrimaryRegionSourceTerms(); kinematicSingleLayer::resetPrimaryRegionSourceTerms();
@ -146,7 +146,7 @@ void thermoSingleLayer::transferPrimaryRegionThermoFields()
{ {
if (debug) if (debug)
{ {
Info<< "thermoSingleLayer::transferPrimaryRegionThermoFields()" << endl; InfoInFunction << endl;
} }
kinematicSingleLayer::transferPrimaryRegionThermoFields(); kinematicSingleLayer::transferPrimaryRegionThermoFields();
@ -165,7 +165,7 @@ void thermoSingleLayer::transferPrimaryRegionSourceFields()
{ {
if (debug) if (debug)
{ {
Info<< "thermoSingleLayer::transferPrimaryRegionSourceFields()" << endl; InfoInFunction << endl;
} }
kinematicSingleLayer::transferPrimaryRegionSourceFields(); kinematicSingleLayer::transferPrimaryRegionSourceFields();
@ -224,7 +224,7 @@ void thermoSingleLayer::updateSubmodels()
{ {
if (debug) if (debug)
{ {
Info<< "thermoSingleLayer::updateSubmodels()" << endl; InfoInFunction << endl;
} }
// Update heat transfer coefficient sub-models // Update heat transfer coefficient sub-models
@ -271,7 +271,7 @@ void thermoSingleLayer::solveEnergy()
{ {
if (debug) if (debug)
{ {
Info<< "thermoSingleLayer::solveEnergy()" << endl; InfoInFunction << endl;
} }
updateSurfaceTemperatures(); updateSurfaceTemperatures();
@ -608,7 +608,7 @@ void thermoSingleLayer::preEvolveRegion()
{ {
if (debug) if (debug)
{ {
Info<< "thermoSingleLayer::preEvolveRegion()" << endl; InfoInFunction << endl;
} }
// correctHsForMappedT(); // correctHsForMappedT();
@ -625,7 +625,7 @@ void thermoSingleLayer::evolveRegion()
{ {
if (debug) if (debug)
{ {
Info<< "thermoSingleLayer::evolveRegion()" << endl; InfoInFunction << endl;
} }
// Update film coverage indicator // Update film coverage indicator

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -68,7 +68,7 @@ void thermalBaffle::solveEnergy()
{ {
if (debug) if (debug)
{ {
Info<< "thermalBaffle::solveEnergy()" << endl; InfoInFunction << endl;
} }
const polyBoundaryMesh& rbm = regionMesh().boundaryMesh(); const polyBoundaryMesh& rbm = regionMesh().boundaryMesh();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -62,10 +62,7 @@ void Foam::MeshedSurfaceProxy<Face>::write
{ {
if (debug) if (debug)
{ {
Info<< "MeshedSurfaceProxy::write" InfoInFunction << "Writing to " << name << endl;
"(const fileName&, const MeshedSurfaceProxy&) : "
"writing to " << name
<< endl;
} }
word ext = name.ext(); word ext = name.ext();
@ -98,14 +95,11 @@ void Foam::MeshedSurfaceProxy<Face>::write
if (debug) if (debug)
{ {
Info<< "MeshedSurfaceProxy::write" InfoInFunction << "Writing to " << name << endl;
"(const Time&, const word&) : "
"writing to " << name
<< endl;
} }
// the local location // The local location
const fileName objectDir const fileName objectDir
( (
t.timePath()/surfaceRegistry::prefix/name/surfMesh::meshSubDir t.timePath()/surfaceRegistry::prefix/name/surfMesh::meshSubDir

View File

@ -107,10 +107,7 @@ void Foam::UnsortedMeshedSurface<Face>::write
{ {
if (debug) if (debug)
{ {
Info<< "UnsortedMeshedSurface::write" InfoInFunction << "Writing to " << name << endl;
"(const fileName&, const UnsortedMeshedSurface&) : "
"writing to " << name
<< endl;
} }
const word ext = name.ext(); const word ext = name.ext();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -131,8 +131,7 @@ void Foam::hePsiThermo<BasicPsiThermo, MixtureType>::correct()
{ {
if (debug) if (debug)
{ {
Info<< "entering hePsiThermo<BasicPsiThermo, MixtureType>::correct()" InfoInFunction << endl;
<< endl;
} }
// force the saving of the old-time values // force the saving of the old-time values
@ -142,8 +141,7 @@ void Foam::hePsiThermo<BasicPsiThermo, MixtureType>::correct()
if (debug) if (debug)
{ {
Info<< "exiting hePsiThermo<BasicPsiThermo, MixtureType>::correct()" Info<< " Finished" << endl;
<< endl;
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -133,14 +133,14 @@ void Foam::heRhoThermo<BasicPsiThermo, MixtureType>::correct()
{ {
if (debug) if (debug)
{ {
Info<< "entering heRhoThermo<MixtureType>::correct()" << endl; InfoInFunction << endl;
} }
calculate(); calculate();
if (debug) if (debug)
{ {
Info<< "exiting heRhoThermo<MixtureType>::correct()" << endl; Info<< " Finished" << endl;
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -204,8 +204,7 @@ void Foam::heheuPsiThermo<BasicPsiThermo, MixtureType>::correct()
{ {
if (debug) if (debug)
{ {
Info<< "entering heheuPsiThermo<BasicPsiThermo, MixtureType>::correct()" InfoInFunction << endl;
<< endl;
} }
// force the saving of the old-time values // force the saving of the old-time values
@ -215,8 +214,7 @@ void Foam::heheuPsiThermo<BasicPsiThermo, MixtureType>::correct()
if (debug) if (debug)
{ {
Info<< "exiting heheuPsiThermo<BasicPsiThermo, MixtureType>::correct()" Info<< " Finished" << endl;
<< endl;
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -168,14 +168,14 @@ void Foam::heSolidThermo<BasicSolidThermo, MixtureType>::correct()
{ {
if (debug) if (debug)
{ {
Info<< "entering heSolidThermo<MixtureType>::correct()" << endl; InfoInFunction << endl;
} }
calculate(); calculate();
if (debug) if (debug)
{ {
Info<< "exiting heSolidThermo<MixtureType>::correct()" << endl; Info<< " Finished" << endl;
} }
} }