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:
@ -393,7 +393,7 @@ bool Foam::functionObjects::fvExpressionField::read(const dictionary& dict)
|
||||
|
||||
// "dimensions" is optional
|
||||
dimensions_.clear();
|
||||
hasDimensions_ = dimensions_.readEntry("dimensions", dict, false);
|
||||
hasDimensions_ = dimensions_.readIfPresent("dimensions", dict);
|
||||
|
||||
if (action_ == actionType::opNew)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user