diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-10-23 15:44:36 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-10-23 15:44:36 +0000 |
commit | 685602041dc636b5605baa083d40c3ad4a48f190 (patch) | |
tree | 1fe8f6b5148fe9585678b50a709224251ec85928 /src/include/cctk_Interp.h | |
parent | f6046933f466aca34cf47a871073d2e4b670bb45 (diff) |
Added implementation information for interpolation operators
Two new functions
const char *CCTK_InterpOperatorImplementation(int handle);
int CCTK_NumInterpOperators(void);
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2423 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Interp.h')
-rw-r--r-- | src/include/cctk_Interp.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/include/cctk_Interp.h b/src/include/cctk_Interp.h index ad202cb1..4bdfb6cf 100644 --- a/src/include/cctk_Interp.h +++ b/src/include/cctk_Interp.h @@ -37,7 +37,7 @@ typedef int (*cInterpOperatorGV) (cGH *GH, /* prototype for interpolation operator routine working on local arrays */ typedef int (*cInterpOperatorLocal) (cGH *GH, - int num_points, + int num_points, int num_dims, int num_in_arrays, int num_out_arrays, @@ -53,11 +53,15 @@ typedef int (*cInterpOperatorLocal) (cGH *GH, int CCTK_InterpHandle (const char *name); -int CCTK_InterpRegisterOperatorGV (cInterpOperatorGV operator_GV, - const char *name); +#define CCTK_InterpRegisterOperatorGV(a,b) CCTKi_InterpRegisterOperatorGV(CCTK_THORNSTRING,a,b) +int CCTKi_InterpRegisterOperatorGV (const char *thorn, + cInterpOperatorGV operator_GV, + const char *name); -int CCTK_InterpRegisterOperatorLocal (cInterpOperatorLocal operator_local, - const char *name); +#define CCTK_InterpRegisterOperatorLocal(a,b) CCTKi_InterpRegisterOperatorLocal(CCTK_THORNSTRING,a,b) +int CCTKi_InterpRegisterOperatorLocal (const char *thorn, + cInterpOperatorLocal operator_local, + const char *name); int CCTK_InterpGV (cGH *GH, int operator_handle, @@ -75,6 +79,10 @@ int CCTK_InterpLocal (cGH *GH, int num_out_arrays, ...); +const char *CCTK_InterpOperatorImplementation(int handle); + +int CCTK_NumInterpOperators(void); + #ifdef __cplusplus } #endif |