mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: rationalize expression string reading
- read construct from dictionary. Calling syntax similar to dimensionedType, dimensionedSet,... Replaces the older getEntry(), getOptional() static methods - support readIfPresent
This commit is contained in:
@ -377,7 +377,7 @@ bool Foam::functionObjects::fvExpressionField::read(const dictionary& dict)
|
||||
case actionType::opModify:
|
||||
{
|
||||
// Optional <fieldMask> for modify
|
||||
maskExpr_.readEntry("fieldMask", dict, false);
|
||||
maskExpr_.readIfPresent("fieldMask", dict);
|
||||
[[fallthrough]];
|
||||
}
|
||||
case actionType::opNew:
|
||||
|
||||
Reference in New Issue
Block a user