ENH: thermoCoupleProbes - simplified initialisation

This commit is contained in:
Andrew Heather 2016-10-21 17:02:07 +01:00
parent 3c9e050d6e
commit 2f2fa53b09

View File

@ -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());
}