diff options
Diffstat (limited to 'src/include/cctk_Coord.h')
-rw-r--r-- | src/include/cctk_Coord.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/include/cctk_Coord.h b/src/include/cctk_Coord.h new file mode 100644 index 00000000..2730abf8 --- /dev/null +++ b/src/include/cctk_Coord.h @@ -0,0 +1,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 + + + |