Commit d8a4643e authored by Henry Weller's avatar Henry Weller
Browse files

functionObject: change default behavior of 'end()' to do nothing rather than...

functionObject: change default behavior of 'end()' to do nothing rather than calling execute and write
Time: call functionObject 'execute()' and 'end()' for last time-step

Now the operation of functionObject 'end()' call is consistent between running and post-processing
parent 18a64f43
......@@ -850,11 +850,9 @@ bool Foam::Time::run() const
if (!subCycling_)
{
// only execute when the condition is no longer true
// ie, when exiting the control loop
if (!running && timeIndex_ != startTimeIndex_)
{
// Note, end() also calls an indirect start() as required
functionObjects_.execute();
functionObjects_.end();
}
}
......
......@@ -136,7 +136,7 @@ bool Foam::functionObject::read(const dictionary& dict)
bool Foam::functionObject::end()
{
return execute() && write();
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment