From 1bf99f541fa5195f8e9ac4ba753718fdbd64e9e5 Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 10 Jan 2013 17:03:37 +0000 Subject: [PATCH] ENH: Updated re-reading of fvOptions --- src/fvOptions/fvOptions/fvOptionIO.C | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/fvOptions/fvOptions/fvOptionIO.C b/src/fvOptions/fvOptions/fvOptionIO.C index c89c97b864..c51b6b9b48 100644 --- a/src/fvOptions/fvOptions/fvOptionIO.C +++ b/src/fvOptions/fvOptions/fvOptionIO.C @@ -90,8 +90,11 @@ void Foam::fv::option::writeData(Ostream& os) const bool Foam::fv::option::read(const dictionary& dict) { active_ = readBool(dict.lookup("active")); - timeStart_ = readScalar(dict.lookup("timeStart")); - duration_ = readScalar(dict.lookup("duration")); + + if (dict.readIfPresent("timeStart", timeStart_)) + { + dict.lookup("duration") >> duration_; + } coeffs_ = dict.subDict(type() + "Coeffs");