ENH: thermoCoupleProbes - store properties under FO name to avoid clashes with other instances

This commit is contained in:
Andrew Heather
2016-11-08 14:37:01 +00:00
parent 57d81c179c
commit 407a47572e

View File

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