Skip to content
Snippets Groups Projects
Commit 407a4757 authored by Andrew Heather's avatar Andrew Heather
Browse files

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

parent 57d81c17
No related merge requests found
......@@ -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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment