ENH: adding hook adjustTimeStep to function objects. The hook is called in

Time::adjustDeltaT(). It allows function objects to manipulate the time step to
    dump at adjustable times. The following options are available for output in
    function objects: timeStep, outputTime, adjustableTime, runTime, clockTime
    and cpuTime.
This commit is contained in:
Sergio Ferraris
2013-09-09 14:13:21 +01:00
parent 470553c61a
commit 2d773bc089
14 changed files with 264 additions and 27 deletions

View File

@ -211,6 +211,27 @@ bool Foam::functionObjectList::timeSet()
}
bool Foam::functionObjectList::adjustTimeStep()
{
bool ok = true;
if (execution_)
{
if (!updated_)
{
read();
}
forAll(*this, objectI)
{
ok = operator[](objectI).adjustTimeStep() && ok;
}
}
return ok;
}
bool Foam::functionObjectList::read()
{
bool ok = true;