diff --git a/src/postProcessing/functionObjects/field/turbulenceFields/turbulenceFieldsTemplates.C b/src/postProcessing/functionObjects/field/turbulenceFields/turbulenceFieldsTemplates.C index 03768c982d61ba5133d451ad328a0e40956765dd..67ac423e1fad1e33ccdbb87f49423740c834bfb2 100644 --- a/src/postProcessing/functionObjects/field/turbulenceFields/turbulenceFieldsTemplates.C +++ b/src/postProcessing/functionObjects/field/turbulenceFields/turbulenceFieldsTemplates.C @@ -41,7 +41,7 @@ void Foam::turbulenceFields::processField if (obr_.foundObject<FieldType>(scopedName)) { FieldType& fld = - const_cast<FieldType&>(obr_.lookupObject<FieldType>(fieldName)); + const_cast<FieldType&>(obr_.lookupObject<FieldType>(scopedName)); fld == tvalue(); } else if (obr_.found(scopedName))