summaryrefslogtreecommitdiff
path: root/src/include/cctk_Interp.h
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-05-28 15:27:07 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-05-28 15:27:07 +0000
commit140bca79e4166dea6e01c6066c28956f4ad943dc (patch)
treee7471130183d7feaf374018640a5b960ded7dbac /src/include/cctk_Interp.h
parentd12ec3bbb14faf7e5a2e6b333137823ef95a3bab (diff)
Get rid of the old interpolator interface which is depricated now.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2212 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Interp.h')
-rw-r--r--src/include/cctk_Interp.h78
1 files changed, 21 insertions, 57 deletions
diff --git a/src/include/cctk_Interp.h b/src/include/cctk_Interp.h
index a36b1359..ad202cb1 100644
--- a/src/include/cctk_Interp.h
+++ b/src/include/cctk_Interp.h
@@ -2,9 +2,9 @@
@header cctk_Interp.h
@date July 07 1999
@author Thomas Radke
- @desc
+ @desc
Header file for using interpolation operators
- @enddesc
+ @enddesc
@history
@date July 07 1999
@author Thomas Radke
@@ -17,7 +17,8 @@
#define _CCTK_INTERP_H_
#ifdef __cplusplus
-extern "C" {
+extern "C"
+{
#endif
/* prototype for interpolation operator routine
@@ -27,11 +28,11 @@ typedef int (*cInterpOperatorGV) (cGH *GH,
int num_points,
int num_in_array_indices,
int num_out_arrays,
- void *interp_coord_arrays[],
- int interp_coord_array_types[],
- int in_array_indices[],
- void *out_arrays[],
- int out_array_types[]);
+ const void *const interp_coord_arrays[],
+ const int interp_coord_array_types[],
+ const int in_array_indices[],
+ void *const out_arrays[],
+ const int out_array_types[]);
/* prototype for interpolation operator routine
working on local arrays */
@@ -40,17 +41,17 @@ typedef int (*cInterpOperatorLocal) (cGH *GH,
int num_dims,
int num_in_arrays,
int num_out_arrays,
- int coord_dims[],
- void *coord_arrays[],
- int coord_array_types[],
- void *interp_coord_arrays[],
- int interp_coord_array_types[],
- void *in_arrays[],
- int in_array_types[],
- void *out_arrays[],
- int out_array_types[]);
-
-int CCTK_InterpHandle (const char *interp);
+ const int coord_dims[],
+ const void *const coord_arrays[],
+ const int coord_array_types[],
+ const void *const interp_coord_arrays[],
+ const int interp_coord_array_types[],
+ const void *const in_arrays[],
+ const int in_array_types[],
+ void *const out_arrays[],
+ const int out_array_types[]);
+
+int CCTK_InterpHandle (const char *name);
int CCTK_InterpRegisterOperatorGV (cInterpOperatorGV operator_GV,
const char *name);
@@ -74,45 +75,8 @@ int CCTK_InterpLocal (cGH *GH,
int num_out_arrays,
...);
-
-/* depricated functions */
-#define INTERP_REGISTER_ARGLIST \
- cGH *, \
- int, \
- int, \
- int, \
- int, \
- int *, \
- void **,\
- int *, \
- void *, \
- void *, \
- void **,\
- int *, \
- void **,\
- int *
-
-int CCTK_InterpArray(cGH *GH,
- int operation_handle,
- int nPoints,
- int nCoords,
- int nInFields,
- int nOutFields,
- ...);
-
-int CCTK_InterpRegisterOperator (int (*function)(INTERP_REGISTER_ARGLIST),
- const char *name);
-
-int CCTK_Interp(cGH *GH,
- int operation_handle,
- int nPoints,
- int nDims,
- int nInFields,
- int nOutFields,
- ...);
-
#ifdef __cplusplus
- }
+}
#endif
#endif /* _INTERP_H_ */