diff --git a/src/functionObjects/utilities/thermoCoupleProbes/thermoCoupleProbes.C b/src/functionObjects/utilities/thermoCoupleProbes/thermoCoupleProbes.C index 91a6b26e2bd291e731ba340e37fe0234e8fb4a80..c884876ed5d8af942a9c8c59d5da117ff4872538 100644 --- a/src/functionObjects/utilities/thermoCoupleProbes/thermoCoupleProbes.C +++ b/src/functionObjects/utilities/thermoCoupleProbes/thermoCoupleProbes.C @@ -67,9 +67,9 @@ Foam::functionObjects::thermoCoupleProbes::thermoCoupleProbes } // Check if the property exist (resume old calculation) - // or of it is new. + // or of it is new dictionary probeDict; - if (getDict(typeName, probeDict)) + if (getDict(name, probeDict)) { probeDict.lookup("Tc") >> Ttc_; } @@ -172,7 +172,7 @@ bool Foam::functionObjects::thermoCoupleProbes::write() dictionary probeDict; probeDict.add("Tc", Ttc_); - setProperty(typeName, probeDict); + setProperty(name(), probeDict); return true; }