diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-12-29 11:19:10 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-12-29 11:19:10 +0000 |
commit | 365d074e3e4065612813eaad2e975a99e18c7d40 (patch) | |
tree | 72c3304037148b4510d3d311c5a38e5aa922a6d3 /src/include/cctk_Coord.h | |
parent | f97967460cc35743ab09abf6fcf3261e87fc4b1a (diff) |
Prototypes for new coordinate functions.
Also needed a macro for fortran, since the call to register a system now
automatically hide the argument with the thorn name doing the registering
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2544 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Coord.h')
-rw-r--r-- | src/include/cctk_Coord.h | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/src/include/cctk_Coord.h b/src/include/cctk_Coord.h index 7137e9f2..745c59bf 100644 --- a/src/include/cctk_Coord.h +++ b/src/include/cctk_Coord.h @@ -16,25 +16,14 @@ 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_CoordDir(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_CoordSystemHandle(const char *systemname); - -const char *CCTK_CoordSystemName(int handle); +const char *CCTK_CoordName (int dir, const char *systemname); int CCTK_CoordRange(const cGH *GH, CCTK_REAL *coord_lower, @@ -50,6 +39,23 @@ int CCTK_CoordRangePhysIndex (const cGH *GH, const char *coordname, const char *systemname); +int CCTK_CoordRegisterData(int dir, + const char *gv, + const char *name, + const char *systemname); + +#define CCTK_CoordRegisterSystem(a,b) \ + CCTKi_CoordRegisterSystem (a,CCTK_THORNSTRING,b) +int CCTKi_CoordRegisterSystem(int dim, + const char *implementation, + const char *systemname); + +int CCTK_CoordSystemDim(const char *systemname); + +int CCTK_CoordSystemHandle(const char *systemname); + +const char *CCTK_CoordSystemName(int handle); + int CCTK_CoordLocalRange(const cGH *GH, CCTK_REAL *lower, CCTK_REAL *upper, @@ -71,6 +77,10 @@ int CCTK_CoordRegisterRangePhysIndex(cGH *GH, const char *coord_name, const char *system_name); +int CCTK_NumCoordSystems (void); + +const char *CCTK_CoordSystemImplementation (int handle); + #ifdef __cplusplus } #endif |