ENH: Updated fieldAverage FO windowing. See #525

When specifying the averaging data, a new `windowType` option is
available, taking the values:

- none: no windowing
- approximate: past functionality (v1706 and earlier)
- exact: exact moving average - will store and write (for restart) all
  fields in the window
This commit is contained in:
Andrew Heather
2017-08-09 16:52:03 +01:00
parent c51ee22101
commit 4fc4f49cef
9 changed files with 1065 additions and 337 deletions

View File

@ -579,9 +579,8 @@ bool Foam::functionObjectList::execute()
}
}
}
// Force writing of state dictionary after function object execution
if (time_.outputTime())
if (time_.writeTime())
{
label oldPrecision = IOstream::precision_;
IOstream::precision_ = 16;