mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: dimensioned/dimensionedSet handle optional read as per dictionary
This commit is contained in:
@ -874,10 +874,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
// Optional: "dimensions"
|
||||
dimensionSet dims;
|
||||
if (dims.readEntry("dimensions", dict, false))
|
||||
{
|
||||
ctrl.hasDimensions = true;
|
||||
}
|
||||
ctrl.hasDimensions = dims.readIfPresent("dimensions", dict);
|
||||
|
||||
if (args.verbose() && !timei)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user