diff options
author | rhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45> | 2014-04-15 19:48:21 +0000 |
---|---|---|
committer | rhaas <rhaas@c83d129a-5a75-4d5a-9c4d-ed3a5855bf45> | 2014-04-15 19:48:21 +0000 |
commit | bd2b950975f86d708a7b2efd0039c1025875b170 (patch) | |
tree | cb868c500700ad8f80c88943fa92b8c74dc8dee4 | |
parent | a5606eed64f40cc3f606e63c069cbea72fed896d (diff) |
GRHydro: Simplify logical expression
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEvolve/GRHydro/trunk@602 c83d129a-5a75-4d5a-9c4d-ed3a5855bf45
-rw-r--r-- | src/GRHydro_LastMoLPostStep.c | 5 |
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) |