mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
STYLE: used guarded read in runTimeControl
This commit is contained in:
@ -70,9 +70,9 @@ Foam::functionObjects::runTimeControls::averageCondition::averageCondition
|
||||
window_(dict.lookupOrDefault<scalar>("window", -1)),
|
||||
windowType_
|
||||
(
|
||||
window_ > 0 ?
|
||||
windowTypeNames.read(dict.lookup("windowType"))
|
||||
: windowType::NONE
|
||||
window_ > 0
|
||||
? windowTypeNames.get("windowType", dict)
|
||||
: windowType::NONE
|
||||
),
|
||||
totalTime_(fieldNames_.size(), scalar(0)),
|
||||
resetOnRestart_(dict.lookupOrDefault<bool>("resetOnRestart", false)),
|
||||
|
||||
Reference in New Issue
Block a user