Time and functionObject updated for end()

- added end() method to functionObject, functionObjectList & associated classes
- moved outputFilters from src/sampling -> src/OpenFOAM/db/functionObjects
This commit is contained in:
Mark Olesen
2009-02-17 12:48:10 +01:00
parent c2256e51f3
commit fee6e312b9
35 changed files with 255 additions and 114 deletions

View File

@ -498,8 +498,8 @@ bool Foam::Time::run() const
// ie, when exiting the control loop
if (!running && timeIndex_ != startTimeIndex_)
{
// Note, the execute() also calls an indirect start() if required
functionObjects_.execute();
// Note, end() also calls an indirect start() as required
functionObjects_.end();
}
}
@ -509,8 +509,7 @@ bool Foam::Time::run() const
bool Foam::Time::end() const
{
bool done = value() > (endTime_ + 0.5*deltaT_);
return done;
return value() > (endTime_ + 0.5*deltaT_);
}