mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: removing coded FixedValue patch deleted fvPatch constructor tables
- use newly introduced makeRemovablePatchTypeField to avoid this problem
This commit is contained in:
@ -39,6 +39,9 @@ namespace Foam
|
||||
|
||||
extern "C"
|
||||
{
|
||||
// dynamicCode:
|
||||
// SHA1 = ${SHA1sum}
|
||||
//
|
||||
// unique function name that can be checked if the correct library version
|
||||
// has been loaded
|
||||
bool ${typeName}_${SHA1sum}()
|
||||
@ -48,7 +51,6 @@ extern "C"
|
||||
}
|
||||
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
${typeName}FixedValueFvPatchScalarField::
|
||||
@ -108,6 +110,13 @@ ${typeName}FixedValueFvPatchScalarField
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
${typeName}FixedValueFvPatchScalarField::
|
||||
~${typeName}FixedValueFvPatchScalarField()
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void ${typeName}FixedValueFvPatchScalarField::updateCoeffs()
|
||||
@ -124,7 +133,7 @@ void ${typeName}FixedValueFvPatchScalarField::updateCoeffs()
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
makePatchTypeField
|
||||
makeRemovablePatchTypeField
|
||||
(
|
||||
fvPatchScalarField,
|
||||
${typeName}FixedValueFvPatchScalarField
|
||||
|
||||
@ -121,6 +121,9 @@ public:
|
||||
);
|
||||
}
|
||||
|
||||
//- Destructor
|
||||
virtual ~${typeName}FixedValueFvPatchScalarField();
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user