blob: 2730abf8f1cdd956bcd3b8d96f30d2d7810772d9 (
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
|
/*@@
@header cctk_Coord.h
@date Mon April 12 1999
@author Gabrielle Allen
@desc
Prototypes and constants for coordinate functions
@enddesc
@version $Header$
@@*/
#ifndef _COORD_H_
#define _COORD_H_
/* Prototypes */
#ifdef __cplusplus
extern "C" {
#endif
struct Coordprops
{
char * name;
int index;
CCTK_REAL origin;
int direction;
};
typedef struct COORD_RANGE {
cGH *GH;
struct Coordprops *props; /* Coordinate data */
CCTK_REAL lower; /* Lower range */
CCTK_REAL upper; /* Upper range */
struct COORD_RANGE *next; /* List */
} coord_range;
int CCTK_CoordRange(cGH *GH, CCTK_REAL *lower, CCTK_REAL *upper, const char *name);
int CCTK_RegisterCoord(int dir, const char *gfname,
const char *coordname);
int CCTK_RegisterCoordI(int dir, int index, const char *name);
int CCTK_CoordIndex(const char *name);
CCTK_REAL CCTK_CoordOrigin(const char *name);
#ifdef __cplusplus
}
#endif
#endif
|