summaryrefslogtreecommitdiff
path: root/src/include/cctk_Coord.h
blob: 6de9643843c4188cd9a8efeda01ecc11376d961a (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 _CCTK_COORD_H_
#define _CCTK_COORD_H_

#ifdef __cplusplus 
extern "C" 
{
#endif

int CCTK_CoordRegisterSystem(int dim, const char *systemname);

int CCTK_CoordRegisterData(int dir, 
			   const char *gv, 
			   const char *name,
			   const char *systemname);

int CCTK_CoordIndex(int dir, 
		    const char *name, 
		    const char *systemname);

int CCTK_CoordDir(const char *name,
		  const char *systemname);

int CCTK_CoordSystemDim(const char *systemname);

int CCTK_CoordRange(cGH        *GH, 
                    CCTK_REAL  *coord_lower, 
                    CCTK_REAL  *coord_upper, 
		    int         coord_dir,
                    const char *coord_name,
		    const char *system_name);

int CCTK_CoordLocalRange(cGH        *GH, 
                         CCTK_REAL  *lower, 
                         CCTK_REAL  *upper, 
			 int         coord_dir,
                         const char *coord_name,
			 const char *system_name);

int CCTK_CoordRegisterRange(cGH        *GH, 
                            CCTK_REAL   coord_min, 
                            CCTK_REAL   coord_max, 
			    int         coord_dir,
                            const char *coord_name,
			    const char *system_name);

#ifdef __cplusplus 
}
#endif

#endif /* _CCTK_COORD_H_ */