mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -424,10 +424,7 @@ void Foam::forceCoeffs::execute()
|
||||
|
||||
void Foam::forceCoeffs::end()
|
||||
{
|
||||
if (active_)
|
||||
{
|
||||
execute();
|
||||
}
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1037,10 +1037,7 @@ void Foam::forces::execute()
|
||||
|
||||
void Foam::forces::end()
|
||||
{
|
||||
if (active_)
|
||||
{
|
||||
execute();
|
||||
}
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user