diff --git a/src/foam/db/Time/foamTime.C b/src/foam/db/Time/foamTime.C index 8ea5e35dc..3deeee18f 100644 --- a/src/foam/db/Time/foamTime.C +++ b/src/foam/db/Time/foamTime.C @@ -1108,10 +1108,11 @@ void Foam::Time::endSubCycle() { if (subCycling_) { - subCycling_ = false; TimeState::operator=(prevTimeState()); prevTimeState_.clear(); } + + subCycling_ = false; }