diff options
-rw-r--r-- | src/GRHydro_LastMoLPostStep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/GRHydro_LastMoLPostStep.c b/src/GRHydro_LastMoLPostStep.c index 1ccc4b4..9e11f5a 100644 --- a/src/GRHydro_LastMoLPostStep.c +++ b/src/GRHydro_LastMoLPostStep.c @@ -27,7 +27,8 @@ void GRHydro_SetLastMoLPostStep(CCTK_ARGUMENTS) } // If counter becomes zero, the only thing left to do is to call PostStep! - if (*MoL_Intermediate_Step == 0) + // NOTE: MoL's counter is uninitialised during initial data setup! + if (cctk_iteration == 0 || *MoL_Intermediate_Step == 0) *InLastMoLPostStep = 1; else *InLastMoLPostStep = 0; |