ENH: Function objects - updated logic to determine whether or not to instantiate a time-based function object. Fixes #439

This commit is contained in:
Andrew Heather
2017-03-21 16:55:24 +00:00
parent 694a03dfeb
commit eed3b77060
5 changed files with 45 additions and 5 deletions

View File

@ -755,11 +755,7 @@ bool Foam::functionObjectList::read()
fo2,
"functionObject::" + key + "::new"
);
if
(
dict.found("writeControl")
|| dict.found("outputControl")
)
if (functionObjects::timeControl::entriesPresent(dict))
{
foPtr.set
(