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

ENH: thermoCoupleProbes - simplified initialisation

parent 3c9e050d
No related merge requests found
......@@ -71,14 +71,7 @@ Foam::functionObjects::thermoCoupleProbes::thermoCoupleProbes
// Check if the property exist (resume old calculation)
// or of it is new.
if (foundProperty(typeName))
{
const dictionary& dict =
this->stateDict().subDict(this->name()).subDict(typeName);
dict.lookup("Tc") >> Ttc_;
}
else
if (!getProperty("Tc", Ttc_))
{
Ttc_ = probes::sample(thermo_.T());
}
......
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