Bugfix: double execution of function objects per time-step

This commit is contained in:
Hrvoje Jasak 2018-09-26 17:26:40 +01:00
parent f145691299
commit c6460044b2

View file

@ -1132,22 +1132,6 @@ Foam::Time& Foam::Time::operator+=(const scalar deltaT)
Foam::Time& Foam::Time::operator++()
{
if (!subCycling_)
{
if (timeIndex_ == startTimeIndex_)
{
addProfile2(fo,"functionObjects_.start()");
functionObjects_.start();
}
else
{
addProfile2(fo,"functionObjects_.execute()");
functionObjects_.execute();
}
}
deltaT0_ = deltaTSave_;
deltaTSave_ = deltaT_;