diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-05-15 18:08:33 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-05-15 18:08:33 +0000 |
commit | a68a6214fb3bd87cd8382f3f8e832be060010360 (patch) | |
tree | 09e7ebf3f1fe59f31041a92f05ff409032141350 /src/main/CactusDefaultInitialise.c | |
parent | a3ee191c60b9c62095ffdf9e3fa9e68e83064bf9 (diff) |
Added changes to where iteration, GH->iteration is updated.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@530 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/CactusDefaultInitialise.c')
-rw-r--r-- | src/main/CactusDefaultInitialise.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/main/CactusDefaultInitialise.c b/src/main/CactusDefaultInitialise.c index 117f3cda..9f65fb86 100644 --- a/src/main/CactusDefaultInitialise.c +++ b/src/main/CactusDefaultInitialise.c @@ -7,6 +7,7 @@ @enddesc @@*/ +#define DEBUG_CCTK #include <stdio.h> #include <stdlib.h> @@ -91,9 +92,16 @@ int Cactus_InitialiseGH(cGH *GH) /* Initialise time */ GH->time = cctk_initial_time; - /* FIXME */ - GH->iteration = 1; - + /* Initialise iteration number */ + GH->iteration = 0; + +#ifdef DEBUG_CCTK + CCTK_PRINTSEPARATOR + printf("In Cactus_Initialise\n--------------------\n"); + printf(" Initializing GH->time = %f\n",GH->time); + printf(" Initializing GH->iteration = %lu\n",GH->iteration); + CCTK_PRINTSEPARATOR +#endif /* Setup the rfr_top on this GH */ @@ -143,4 +151,6 @@ int Cactus_InitialiseGH(cGH *GH) CCTK_rfrTraverse(GH,Rstep); } + return 1; + } |