[Commits] [svn:einsteintoolkit] GRHydro/trunk/src/ (Rev. 602)

rhaas at tapir.caltech.edu rhaas at tapir.caltech.edu
Tue Apr 15 14:48:21 CDT 2014


User: rhaas
Date: 2014/04/15 02:48 PM

Modified:
 /trunk/src/
  GRHydro_LastMoLPostStep.c

Log:
 GRHydro: Simplify logical expression

File Changes:

Directory: /trunk/src/
======================

File [modified]: GRHydro_LastMoLPostStep.c
Delta lines: +1 -4
===================================================================
--- trunk/src/GRHydro_LastMoLPostStep.c	2014-04-15 19:48:18 UTC (rev 601)
+++ trunk/src/GRHydro_LastMoLPostStep.c	2014-04-15 19:48:21 UTC (rev 602)
@@ -28,10 +28,7 @@
 
   // 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)



More information about the Commits mailing list