diff --git a/src/postProcessing/functionObjects/field/turbulenceFields/turbulenceFieldsTemplates.C b/src/postProcessing/functionObjects/field/turbulenceFields/turbulenceFieldsTemplates.C index 03768c982d..67ac423e1f 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(scopedName)) { FieldType& fld = - const_cast(obr_.lookupObject(fieldName)); + const_cast(obr_.lookupObject(scopedName)); fld == tvalue(); } else if (obr_.found(scopedName))