mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: runTimeControl - execute function objects on end
This commit is contained in:
@ -250,6 +250,7 @@ bool Foam::functionObjects::runTimeControls::runTimeControl::execute()
|
|||||||
{
|
{
|
||||||
Info<< " Stopping calculation" << nl
|
Info<< " Stopping calculation" << nl
|
||||||
<< " Writing fields";
|
<< " Writing fields";
|
||||||
|
|
||||||
if (nWriteStep_ != 0)
|
if (nWriteStep_ != 0)
|
||||||
{
|
{
|
||||||
Info<< " - final step" << nl;
|
Info<< " - final step" << nl;
|
||||||
@ -259,7 +260,14 @@ bool Foam::functionObjects::runTimeControls::runTimeControl::execute()
|
|||||||
Info<< nl;
|
Info<< nl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Info<< endl;
|
||||||
|
active_ = false;
|
||||||
|
|
||||||
|
// Write any registered objects and set the end-time
|
||||||
time.writeAndEnd();
|
time.writeAndEnd();
|
||||||
|
|
||||||
|
// Trigger any function objects
|
||||||
|
time.run();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user