mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated re-reading of fvOptions
This commit is contained in:
@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user