mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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_);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user