summaryrefslogtreecommitdiff
path: root/src/main/CactusDefaultMainLoopIndex.c
blob: 55646992877ccc75bdbd9080b56f1348fe0cd204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
 /*@@
   @file      CactusDefaultMainLoopIndex.c
   @date      Wed Oct 04 16:53:58 2000
   @author    Gabrielle Allen
   @desc 
              The default main loop index routines
   @enddesc 
   @version   $Id$
 @@*/

#include "cctk_Flesh.h"

static const char *rcsid = "$Header$";

CCTK_FILEVERSION(main_CactusDefaultMainLoopIndex_c);

static int iteration = 0;

int CactusDefaultMainLoopIndex (void);
int CactusDefaultSetMainLoopIndex (int main_loop_index);


 /*@@
   @routine    CactusDefaultMainLoopIndex
   @date       Wed Oct 04 16:53:58 2000
   @author     Gabrielle Allen
   @desc 
               Default main loop index routine
   @enddesc 

   @returntype int
   @returndesc
               current value of the iteration counter
   @endreturndesc
@@*/
int CactusDefaultMainLoopIndex (void)
{
  return (iteration);
}


 /*@@
   @routine    CactusDefaultSetMainLoopIndex
   @date       Sep 22 1999
   @author     Thomas Radke
   @desc 
               Sets the iteration counter variable of the evolution loop.
               This is used for recovery.
   @enddesc

   @returntype int
   @returndesc
               value of the new iteration counter
   @endreturndesc
@@*/
int CactusDefaultSetMainLoopIndex (int main_loop_index)
{
  iteration = main_loop_index;
  return (iteration);
}