diff --git a/etc/codeTemplates/dynamicCode/fixedValueFvPatchScalarFieldTemplate.C b/etc/codeTemplates/dynamicCode/fixedValueFvPatchScalarFieldTemplate.C index 9e88840aec..d9626d0a69 100644 --- a/etc/codeTemplates/dynamicCode/fixedValueFvPatchScalarFieldTemplate.C +++ b/etc/codeTemplates/dynamicCode/fixedValueFvPatchScalarFieldTemplate.C @@ -60,6 +60,17 @@ extern "C" } } +// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // + +makeRemovablePatchTypeField +( + fvPatchScalarField, + ${typeName}FixedValueFvPatchScalarField +); + + +const char* ${typeName}FixedValueFvPatchScalarField::SHA1sum = "${SHA1sum}"; + // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // @@ -184,15 +195,6 @@ void ${typeName}FixedValueFvPatchScalarField::updateCoeffs() } -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -makeRemovablePatchTypeField -( - fvPatchScalarField, - ${typeName}FixedValueFvPatchScalarField -); - - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam diff --git a/etc/codeTemplates/dynamicCode/fixedValueFvPatchScalarFieldTemplate.H b/etc/codeTemplates/dynamicCode/fixedValueFvPatchScalarFieldTemplate.H index c9a2d1c160..742a9ca01b 100644 --- a/etc/codeTemplates/dynamicCode/fixedValueFvPatchScalarFieldTemplate.H +++ b/etc/codeTemplates/dynamicCode/fixedValueFvPatchScalarFieldTemplate.H @@ -55,6 +55,9 @@ class ${typeName}FixedValueFvPatchScalarField public: + //- Information about the SHA1 of the code itself + static const char* SHA1sum; + //- Runtime type information TypeName("${typeName}");