summaryrefslogtreecommitdiff
path: root/src/include/cctki_Stagger.h
blob: 3c98e5bce9e26d1c6a566b56375705205f881310 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
 /*@@
   @header    cctki_Stagger.h
   @date      Thu Jan 20 2000
   @author    Gerd Lanfermann
   @desc 
   Prototypes and constants for stagger functions.
   @enddesc 
   @version $Header$
 @@*/

#ifndef _CCTKI_STAGGER_H_
#define _CCTKI_STAGGER_H_

#ifdef __cplusplus
extern "C" 
{
#endif

int CCTKi_ParseStaggerString(int dim,  
                             const char *imp, 
                             const char *gname,  
                             const char *stype); 

#ifdef __cplusplus
}
#endif

/* number of implemented staggerings */
#define CCTK_NUM_STAGGER   3

/* number of staggerings (3); stagger flags: yes/no, */
#define CCTK_NSTAG         3
#define CCTK_NO_STAGGER    0
#define CCTK_STAGGER       1

/* stagger code in one direction */
#define CCTK_STAG_M        0
#define CCTK_STAG_C        1
#define CCTK_STAG_P        2

/* stagger code of three directions */
#define CCTK_STAG_MMM 0
#define CCTK_STAG_CMM 1
#define CCTK_STAG_PMM 2

#define CCTK_STAG_MCM 3
#define CCTK_STAG_CCM 4
#define CCTK_STAG_PCM 5

#define CCTK_STAG_MPM 6
#define CCTK_STAG_CPM 7
#define CCTK_STAG_PPM 8

#define CCTK_STAG_MMC 9
#define CCTK_STAG_CMC 10
#define CCTK_STAG_PMC 11

#define CCTK_STAG_MCC 12
#define CCTK_STAG_CCC 13
#define CCTK_STAG_PCC 14

#define CCTK_STAG_MPC 15
#define CCTK_STAG_CPC 16
#define CCTK_STAG_PPC 17

#define CCTK_STAG_MMP 18
#define CCTK_STAG_CMP 19
#define CCTK_STAG_PMP 20

#define CCTK_STAG_MCP 21
#define CCTK_STAG_CCP 22
#define CCTK_STAG_PCP 23

#define CCTK_STAG_MPP 24
#define CCTK_STAG_CPP 25
#define CCTK_STAG_PPP 26


#endif /* _CCTKI_STAGGER_H_ */