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