aboutsummaryrefslogtreecommitdiff
path: root/src/CoordBase.h
blob: b67b07c360944af40fed2afcf9d96323a3ad3f68 (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
/*@@
   @header    CoordBase.h
   @date      Wed June 26 2002
   @author    Gabrielle Allen
   @desc 
   Headers and defines for coordinate base thorn
   @enddesc 
   @version $Header$
 @@*/

#ifndef _COORDBASE_H_
#define _COORDBASE_H_

#ifndef COORD_IN_COORDBASE

/* Since some people may still be including this header file 
 * rather than using the function aliasing, we need to 
 * allow them access to the internal functions.
 */

#define Coord_SystemRegister CoordBase_SystemRegister
#define Coord_SystemHandle CoordBase_SystemHandle
#define Coord_CoordRegister CoordBase_CoordRegister
#define Coord_CoordHandle CoordBase_CoordHandle
#define Coord_GroupSystem CoordBase_GroupSystem
#define Coord_SetDefaultSystem CoordBase_SetDefaultSystem

#endif /* COORD_IN_COORDBASE */

#ifdef __cplusplus 
extern "C" 
{
#endif

CCTK_INT CoordBase_SystemRegister(CCTK_POINTER_TO_CONST GH,
                                  CCTK_INT dim,
                                  CCTK_STRING systemname);

CCTK_INT CoordBase_SystemHandle(CCTK_POINTER_TO_CONST GH,
                                CCTK_STRING systemname);

CCTK_INT CoordBase_CoordRegister(CCTK_POINTER_TO_CONST GH,
                                 CCTK_INT systemhandle,
                                 CCTK_INT direction,
                                 CCTK_STRING coordname);

CCTK_INT CoordBase_CoordHandle(CCTK_POINTER_TO_CONST GH,
                               CCTK_STRING coordname,
                               CCTK_STRING systemname);

CCTK_INT CoordBase_GroupSystem(CCTK_POINTER_TO_CONST GH,
                               CCTK_STRING groupname);

CCTK_INT CoordBase_SetDefaultSystem(CCTK_POINTER_TO_CONST GH,
                                    CCTK_STRING systemname);

#ifdef __cplusplus 
}
#endif
 
#define COORDERROR_SYSTEMEXISTS     -1
#define COORDERROR_INVALIDDIM       -2
#define COORDERROR_INVALIDNAME      -3
#define COORDERROR_TABLEERROR       -4
#define COORDERROR_NOSYSTEM         -5
#define COORDERROR_INVALIDHANDLE    -6
#define COORDERROR_COORDINATEEXISTS -7
#define COORDERROR_DUPLICATENAME    -8
#define COORDERROR_NOSUCHCOORD      -9
#define COORDERROR_INVALIDGROUPNAME -10
#define COORDERROR_NOCOORDSYS       -11
#define COORDERROR_NODIMENSION      -12
#define COORDERROR_DEFAULTEXISTS    -13

#endif