Skip to content

Incorrect re-reading of time-based function objects

Summary

Time control -based function objects do not re-read correctly

Steps to reproduce

Try adding a FO, e.g.

DESModelRegions
{
    type            DESModelRegions;
    libs            ("libfieldFunctionObjects.so");
}

During the run, change to:

DESModelRegions
{
    type            DESModelRegions;
    libs            ("libfieldFunctionObjects.so");
    writeControl    writeTime;
}

and the new write settings are not enforced and data is still written at every time step (default behaviour)

What is the current bug behaviour?

Function objects created as timeControl hold a local reference to the actual/desired FO. When the FO is re-read, the high-level FO is read and bypasses any time-based settings.