From 8b557d128c41195d5db9ee8d7352b3ded0e49c43 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 20 Sep 2022 10:25:55 +0100 Subject: [PATCH] functionObjectList: Added automatic timeControl wrapping when either writeControl or executeControl entries are present timeControl functionality is supported for both execution and writing but previously only instantiated if the writeControl entry is present in the functionObject dictionary, now it is also instantiated if only the executeControl entry is present as the functionObject might only have execute functionality. --- .../functionObjects/functionObjectList/functionObjectList.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C b/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C index ea511e683c..30c736453a 100644 --- a/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C +++ b/src/OpenFOAM/db/functionObjects/functionObjectList/functionObjectList.C @@ -31,7 +31,6 @@ License #include "etcFiles.H" #include "wordAndDictionary.H" - /* * * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * */ Foam::fileName Foam::functionObjectList::functionObjectDictPath @@ -791,7 +790,8 @@ bool Foam::functionObjectList::read() if ( - dict.found("writeControl") + dict.found("executeControl") + || dict.found("writeControl") || dict.found("outputControl") ) {