diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-06-26 18:51:13 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-06-26 18:51:13 +0000 |
commit | 1dda6bf9ffa523ab062342f53ceff09c482d3aa0 (patch) | |
tree | 10115a48bfa99a2cff81ec796f5acf441a3b9666 /src/main/MainUtils.c | |
parent | a855bb52af67d9540f616886866d9ca984ae40b6 (diff) |
Changes to CCTK_MainLoopIndex and CCTK_SetMainLoopIndex (which now returns what the index is set to)
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1705 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/MainUtils.c')
-rw-r--r-- | src/main/MainUtils.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/main/MainUtils.c b/src/main/MainUtils.c new file mode 100644 index 00000000..524ddbca --- /dev/null +++ b/src/main/MainUtils.c @@ -0,0 +1,50 @@ + /*@@ + @file MainUtils.c + @date Sep 22 1999 + @author Thomas Radke, Gabrielle Allen + @desc + Utility Flesh routines + @enddesc + @version $Header$ + @@*/ + +/* the iteration counter used in the evolution loop */ +static int iteration = 0; + + + /*@@ + @routine CCTK_SetMainLoopIndex + @date Sep 22 1999 + @author Thomas Radke + @desc + Sets the iteration counter variable of the evolution loop. + This is used for recovery. + @enddesc + @calls + @calledby + +@@*/ +int CCTK_SetMainLoopIndex (int main_loop_index) +{ + iteration = main_loop_index; + return iteration; +} + + + /*@@ + @routine CCTK_MainLoopIndex + @date Sep 22 1999 + @author Thomas Radke + @desc + Returns the iteration counter variable of the evolution loop. + This is used for checkpointing. + @enddesc + @calls + @calledby + +@@*/ +int CCTK_MainLoopIndex (void) +{ + return (iteration); +} + |