aboutsummaryrefslogtreecommitdiff
path: root/src/Registration.c
diff options
context:
space:
mode:
authorhawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b>2003-07-17 07:52:07 +0000
committerhawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b>2003-07-17 07:52:07 +0000
commit16c984f44503a050e25cf23f6d3aa1008e45303b (patch)
tree65e6fd3834ec5e4de2564b5335facd85f3229471 /src/Registration.c
parent914705c9c1061631babe6376cf5b6e32dc4544db (diff)
Fix an error in the internal arrays for when changing from constrained/SandR to evolved.
Add a load more debugging statements (ifdef'd). git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@21 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
Diffstat (limited to 'src/Registration.c')
-rw-r--r--src/Registration.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Registration.c b/src/Registration.c
index 13d5d12..2dd4767 100644
--- a/src/Registration.c
+++ b/src/Registration.c
@@ -778,7 +778,13 @@ CCTK_INT MoL_RegisterEvolvedReal(CCTK_INT EvolvedIndex, CCTK_INT RHSIndex)
RHSVariableIndex[MoLNumEvolvedVariables] = RHSIndex;
MoLNumEvolvedVariables++;
-
+
+#ifdef MOLDEBUG
+ printf("The max number is now %d. Just added %d (%s).\n",
+ MoLNumEvolvedVariables, EvolvedIndex,
+ CCTK_VarName(EvolvedIndex));
+#endif
+
if (MoLNumEvolvedVariables > MoL_Num_Evolved_Vars)
{
CCTK_WARN(0,"You have tried to register more evolved variables than the accumulator parameter MoL_Num_Evolved_Variables allows. Check that you are accumulating onto this parameter correctly");