diff --git a/src/functionObjects/field/fieldValues/volFieldValue/volFieldValueTemplates.C b/src/functionObjects/field/fieldValues/volFieldValue/volFieldValueTemplates.C index a858bda5f0..570ab47718 100644 --- a/src/functionObjects/field/fieldValues/volFieldValue/volFieldValueTemplates.C +++ b/src/functionObjects/field/fieldValues/volFieldValue/volFieldValueTemplates.C @@ -34,7 +34,11 @@ bool Foam::functionObjects::fieldValues::volFieldValue::validField const word& fieldName ) const { - if (obr_.foundObject>(fieldName)) + if + ( + obr_.foundObject>(fieldName) + || obr_.foundObject>(fieldName) + ) { return true; } @@ -55,6 +59,14 @@ Foam::functionObjects::fieldValues::volFieldValue::getFieldValues return filterField(obr_.lookupObject>(fieldName)); } + if (obr_.foundObject>(fieldName)) + { + return filterField + ( + obr_.lookupObject>(fieldName) + ); + } + FatalErrorInFunction << "Field " << fieldName << " not found in database" << abort(FatalError); diff --git a/src/functionObjects/field/fieldsExpression/fieldsExpression.H b/src/functionObjects/field/fieldsExpression/fieldsExpression.H index ab6e390023..030b870d7c 100644 --- a/src/functionObjects/field/fieldsExpression/fieldsExpression.H +++ b/src/functionObjects/field/fieldsExpression/fieldsExpression.H @@ -61,15 +61,6 @@ class fieldsExpression { protected: - // Protected typedefs - - //- Internal field typedef that doesn't go via the - // GeometricField::Internal typedef, and therefore allows template - // argument deduction of the Type - template - using VolInternalField = DimensionedField; - - // Protected member data //- Names of fields to process