From b9ef35254aa07312d16d75e2f306459fdfd90dcd Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Fri, 20 Mar 2020 15:35:50 +0000 Subject: [PATCH] Move the subcycling flag reset --- src/foam/db/Time/foamTime.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }