From 2f2fa53b09fec1d79825d75ca98f183fbb8eb252 Mon Sep 17 00:00:00 2001 From: Andrew Heather Date: Fri, 21 Oct 2016 17:02:07 +0100 Subject: [PATCH] ENH: thermoCoupleProbes - simplified initialisation --- .../utilities/thermoCoupleProbes/thermoCoupleProbes.C | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/functionObjects/utilities/thermoCoupleProbes/thermoCoupleProbes.C b/src/functionObjects/utilities/thermoCoupleProbes/thermoCoupleProbes.C index 64a14fcb38..afe2072171 100644 --- a/src/functionObjects/utilities/thermoCoupleProbes/thermoCoupleProbes.C +++ b/src/functionObjects/utilities/thermoCoupleProbes/thermoCoupleProbes.C @@ -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()); }