blob: 524ddbca567224520d2c790a504336bc8be186e0 (
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
|
/*@@
@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);
}
|