ENH: function objects - apply scoped name when registering objects

This commit is contained in:
Andrew Heather
2021-11-19 11:30:08 +00:00
committed by Mark Olesen
parent 9194cd5203
commit c233961d45
23 changed files with 116 additions and 69 deletions

View File

@ -113,7 +113,8 @@ bool Foam::functionObjects::zeroGradient::read(const dictionary& dict)
Info<< type() << " fields: " << selectFields_ << nl;
resultName_ = dict.getOrDefault<word>("result", type() + "(@@)");
resultName_ =
dict.getOrDefault<word>("result", scopedName(type() + "(@@)"));
// Require '@@' token for result, unless a single (non-regex) source field
return