From 685602041dc636b5605baa083d40c3ad4a48f190 Mon Sep 17 00:00:00 2001 From: allen Date: Tue, 23 Oct 2001 15:44:36 +0000 Subject: 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 --- src/include/cctk_Interp.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/include') 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 -- cgit v1.2.3