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

@ -56,7 +56,7 @@ bool Foam::functionObjects::randomise::calcTemplate()
{
const auto& field = *fieldPtr;
resultName_ = fieldName_ & "Random";
resultName_ = scopedName(fieldName_ & "Random");
auto trfield = tmp<VolFieldType>::New(field);
auto& rfield = trfield.ref();