From 8221b25875c2993823afc70d8032ebc2da5c3002 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 25 Sep 2020 16:41:47 +0100 Subject: [PATCH] coded classes: Added "codeOptions" Resolves bug-report https://bugs.openfoam.org/view.php?id=3555 --- .../derived/codedFixedValue/codedFixedValuePointPatchFields.C | 1 + src/OpenFOAM/primitives/functions/Function1/makeFunction1s.C | 3 ++- .../derived/codedFixedValue/codedFixedValueFvPatchFields.C | 1 + .../fvPatchFields/derived/codedMixed/codedMixedFvPatchFields.C | 1 + .../utilities/codedFunctionObject/codedFunctionObject.C | 1 + src/fvOptions/sources/general/codedSource/CodedSource.C | 1 + 6 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchFields.C b/src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchFields.C index a156a44fd6..879a6cd1ba 100644 --- a/src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchFields.C +++ b/src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchFields.C @@ -37,6 +37,7 @@ Foam::CodedBase::codeKeys_ = { "code", "codeInclude", + "codeOptions", "localCode" }; diff --git a/src/OpenFOAM/primitives/functions/Function1/makeFunction1s.C b/src/OpenFOAM/primitives/functions/Function1/makeFunction1s.C index 6d2de3f924..5d7416e5b1 100644 --- a/src/OpenFOAM/primitives/functions/Function1/makeFunction1s.C +++ b/src/OpenFOAM/primitives/functions/Function1/makeFunction1s.C @@ -45,7 +45,8 @@ template<> const Foam::wordList Foam::CodedBase::codeKeys_ = { "code", - "codeInclude" + "codeInclude", + "codeOptions" }; diff --git a/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchFields.C b/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchFields.C index 8e9a12dc8e..b29fa51a48 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchFields.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchFields.C @@ -37,6 +37,7 @@ Foam::CodedBase::codeKeys_ = { "code", "codeInclude", + "codeOptions", "localCode" }; diff --git a/src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchFields.C b/src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchFields.C index 3bd2005849..2c44265f71 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchFields.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchFields.C @@ -37,6 +37,7 @@ Foam::CodedBase::codeKeys_ = { "code", "codeInclude", + "codeOptions", "localCode" }; diff --git a/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.C b/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.C index 4ea9eb908b..7a09ed12c2 100644 --- a/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.C +++ b/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.C @@ -42,6 +42,7 @@ const Foam::wordList Foam::CodedBase::codeKeys_ = "codeEnd", "codeExecute", "codeInclude", + "codeOptions", "codeRead", "codeWrite", "localCode" diff --git a/src/fvOptions/sources/general/codedSource/CodedSource.C b/src/fvOptions/sources/general/codedSource/CodedSource.C index 9f63c53479..6045441e05 100644 --- a/src/fvOptions/sources/general/codedSource/CodedSource.C +++ b/src/fvOptions/sources/general/codedSource/CodedSource.C @@ -39,6 +39,7 @@ const Foam::wordList Foam::fv::CodedSource::codeKeys_ = "codeAddAlphaRhoSup", "codeCorrect", "codeInclude", + "codeOptions", "codeSetValue", "localCode" };