mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: can use bool instead of Switch version of dictionary::lookupOrDefault
- both versions handle the same input words. Only need the <Switch> version when the destination variable is also a Switch and we need to output the word later.
This commit is contained in:
@ -255,7 +255,7 @@ bool Foam::solution::read()
|
||||
if (dict.found("cache"))
|
||||
{
|
||||
cache_ = dict.subDict("cache");
|
||||
caching_ = cache_.lookupOrDefault<Switch>("active", true);
|
||||
caching_ = cache_.lookupOrDefault("active", true);
|
||||
}
|
||||
|
||||
if (dict.found("relaxationFactors"))
|
||||
|
||||
Reference in New Issue
Block a user