From 2ef926732363fbc676098f16dd847bc832c5dd96 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 19 Dec 2019 16:47:23 +0000 Subject: [PATCH] functionObjectList: Set parent dictionary for temporary function dictionary so that it inherits the IO properties of the top dictionary. Resolves bug-report https://bugs.openfoam.org/view.php?id=3414 --- .../functionObjectList/functionObjectList.C | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C b/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C index e2201667d5..9676ece13f 100644 --- a/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C +++ b/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C @@ -322,7 +322,7 @@ bool Foam::functionObjectList::readFunctionObject // Delay processing the functionEntries // until after the function argument entries have been added entry::disableFunctionEntries = true; - dictionary funcsDict(fileStream); + dictionary funcsDict(funcName, functionsDict, fileStream); entry::disableFunctionEntries = false; dictionary* funcDictPtr = &funcsDict; @@ -389,7 +389,12 @@ bool Foam::functionObjectList::readFunctionObject { OStringStream os; funcArgsDict.write(os); - funcArgsDict = dictionary(IStringStream(os.str())()); + funcArgsDict = dictionary + ( + funcName, + functionsDict, + IStringStream(os.str())() + ); } checkUnsetEntries(funcCall, funcArgsDict, funcDict0, context);