[Commits] [svn:einsteintoolkit] GRHydro/trunk/src/ (Rev. 506)
schnetter at cct.lsu.edu
schnetter at cct.lsu.edu
Sat Apr 13 17:31:17 CDT 2013
User: eschnett
Date: 2013/04/13 05:31 PM
Modified:
/trunk/src/
GRHydro_LastMoLPostStep.c
Log:
Set InLastMoLPostStep during initial data setup
The previous code accessed MoL_Intermediate_Step, which is undefined
during initial data setup.
File Changes:
Directory: /trunk/src/
======================
File [modified]: GRHydro_LastMoLPostStep.c
Delta lines: +2 -1
===================================================================
--- trunk/src/GRHydro_LastMoLPostStep.c 2013-04-10 17:54:10 UTC (rev 505)
+++ trunk/src/GRHydro_LastMoLPostStep.c 2013-04-13 22:31:17 UTC (rev 506)
@@ -27,7 +27,8 @@
}
// 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;
More information about the Commits
mailing list