From 407a47572ef2144cee4a7f8666702d358a4fc4c5 Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Tue, 8 Nov 2016 14:37:01 +0000 Subject: [PATCH] ENH: thermoCoupleProbes - store properties under FO name to avoid clashes with other instances --- .../utilities/thermoCoupleProbes/thermoCoupleProbes.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/functionObjects/utilities/thermoCoupleProbes/thermoCoupleProbes.C b/src/functionObjects/utilities/thermoCoupleProbes/thermoCoupleProbes.C index 91a6b26e2b..c884876ed5 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; }