ENH: add static const char* SHA1sum to fixedValueFvPatchScalarFieldTemplate

- useful for debugging purposes
This commit is contained in:
Mark Olesen
2011-03-07 18:10:29 +01:00
parent 923e17b1e5
commit 336fa74478
2 changed files with 14 additions and 9 deletions

View File

@ -60,6 +60,17 @@ extern "C"
} }
} }
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
makeRemovablePatchTypeField
(
fvPatchScalarField,
${typeName}FixedValueFvPatchScalarField
);
const char* ${typeName}FixedValueFvPatchScalarField::SHA1sum = "${SHA1sum}";
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
@ -184,15 +195,6 @@ void ${typeName}FixedValueFvPatchScalarField::updateCoeffs()
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makeRemovablePatchTypeField
(
fvPatchScalarField,
${typeName}FixedValueFvPatchScalarField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam } // End namespace Foam

View File

@ -55,6 +55,9 @@ class ${typeName}FixedValueFvPatchScalarField
public: public:
//- Information about the SHA1 of the code itself
static const char* SHA1sum;
//- Runtime type information //- Runtime type information
TypeName("${typeName}"); TypeName("${typeName}");