ENH: functionObjects: call execute on last time step

- old convention was that on last time step it would only call end()
and not execute()
- however this meant that e.g. the functionObjectProperties file
did not get written
- and almost all functionObjects were doing an execute() inside of end()
- new convention: call execute() on last time step, just before doing end()
This commit is contained in:
mattijs
2015-12-03 17:39:34 +00:00
parent bd737621a0
commit 3e5da0bcf2
32 changed files with 46 additions and 140 deletions

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -236,10 +236,7 @@ void Foam::runTimeControl::execute()
void Foam::runTimeControl::end()
{
if (active_)
{
execute();
}
// Do nothing
}