ENH: allow verbose output for fixedValueFvPatchScalarFieldTemplate

This commit is contained in:
Mark Olesen
2011-03-02 14:28:22 +01:00
parent 3b72fc3e38
commit 815a806be7

View File

@ -28,7 +28,9 @@ License
#include "fvPatchFieldMapper.H" #include "fvPatchFieldMapper.H"
#include "volFields.H" #include "volFields.H"
#include "surfaceFields.H" #include "surfaceFields.H"
//{{{ begin codeInclude
${codeInclude} ${codeInclude}
//}}} end codeInclude
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -61,7 +63,13 @@ ${typeName}FixedValueFvPatchScalarField
) )
: :
fixedValueFvPatchScalarField(p, iF) fixedValueFvPatchScalarField(p, iF)
{} {
if (${verbose:-false})
{
Info<<"construct ${typeName} sha1: ${SHA1sum}"
" from patch/DimensionedField\n";
}
}
${typeName}FixedValueFvPatchScalarField:: ${typeName}FixedValueFvPatchScalarField::
@ -74,7 +82,13 @@ ${typeName}FixedValueFvPatchScalarField
) )
: :
fixedValueFvPatchScalarField(ptf, p, iF, mapper) fixedValueFvPatchScalarField(ptf, p, iF, mapper)
{} {
if (${verbose:-false})
{
Info<<"construct ${typeName} sha1: ${SHA1sum}"
" from patch/DimensionedField/mapper\n";
}
}
${typeName}FixedValueFvPatchScalarField:: ${typeName}FixedValueFvPatchScalarField::
@ -86,7 +100,13 @@ ${typeName}FixedValueFvPatchScalarField
) )
: :
fixedValueFvPatchScalarField(p, iF, dict) fixedValueFvPatchScalarField(p, iF, dict)
{} {
if (${verbose:-false})
{
Info<<"construct ${typeName} sha1: ${SHA1sum}"
" from patch/dictionary\n";
}
}
${typeName}FixedValueFvPatchScalarField:: ${typeName}FixedValueFvPatchScalarField::
@ -96,7 +116,13 @@ ${typeName}FixedValueFvPatchScalarField
) )
: :
fixedValueFvPatchScalarField(ptf) fixedValueFvPatchScalarField(ptf)
{} {
if (${verbose:-false})
{
Info<<"construct ${typeName} sha1: ${SHA1sum}"
" as copy\n";
}
}
${typeName}FixedValueFvPatchScalarField:: ${typeName}FixedValueFvPatchScalarField::
@ -107,14 +133,25 @@ ${typeName}FixedValueFvPatchScalarField
) )
: :
fixedValueFvPatchScalarField(ptf, iF) fixedValueFvPatchScalarField(ptf, iF)
{} {
if (${verbose:-false})
{
Info<<"construct ${typeName} sha1: ${SHA1sum} "
"as copy/DimensionedField\n";
}
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
${typeName}FixedValueFvPatchScalarField:: ${typeName}FixedValueFvPatchScalarField::
~${typeName}FixedValueFvPatchScalarField() ~${typeName}FixedValueFvPatchScalarField()
{} {
if (${verbose:-false})
{
Info<<"destroy ${typeName} sha1: ${SHA1sum}\n";
}
}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
@ -126,7 +163,15 @@ void ${typeName}FixedValueFvPatchScalarField::updateCoeffs()
return; return;
} }
${code} if (${verbose:-false})
{
Info<<"updateCoeffs ${typeName} sha1: ${SHA1sum}\n";
}
//{{{ begin code
${code};
//}}} end code
fixedValueFvPatchScalarField::updateCoeffs(); fixedValueFvPatchScalarField::updateCoeffs();
} }