diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-30 13:12:54 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-30 13:12:54 +0000 |
commit | 08d345f1a8c59312367b102d37ce30ef2070ad31 (patch) | |
tree | 1aa71d16bbbc6c19a6aeb040bbd7f74ff191add9 /src/include/cctk_Coord.h | |
parent | 911d72f4fc3e61a8faa523cdf5c6f4b37d5d0c33 (diff) |
New include file names
git-svn-id: http://svn.cactuscode.org/flesh/trunk@833 17b73243-c579-4c4c-a9d2-2d5706c11dac
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 + + + |