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.
This commit is contained in:
Henry Weller
2022-09-20 10:25:55 +01:00
parent a12bb3f446
commit 8b557d128c

View File

@ -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")
)
{