summaryrefslogtreecommitdiff
path: root/src/include/cctk_Interp.h
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-06-20 12:30:01 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-06-20 12:30:01 +0000
commit21ae8423c4ceef1dda0ef880f92523603a9a510a (patch)
treec272ee69e7e28b495eea7bb774aeb76882f30859 /src/include/cctk_Interp.h
parente6054998f0b5c2ae3aadf3735b37004356c70b96 (diff)
Removed old interpolator API code.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3771 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Interp.h')
-rw-r--r--src/include/cctk_Interp.h161
1 files changed, 54 insertions, 107 deletions
diff --git a/src/include/cctk_Interp.h b/src/include/cctk_Interp.h
index bc989998..8199b9f2 100644
--- a/src/include/cctk_Interp.h
+++ b/src/include/cctk_Interp.h
@@ -1,21 +1,22 @@
/*@@
- @header cctk_Interp.h
- @date July 07 1999
- @author Thomas Radke
+ @header cctk_Interp.h
+ @date July 07 1999
+ @author Thomas Radke
@desc
- Header file for using interpolation operators
+ Header file for using interpolation operators
@enddesc
@history
- @date July 07 1999
- @author Thomas Radke
- @hdesc Just copied from cctk_Reduction.h
+ @date July 07 1999
+ @author Thomas Radke
+ @hdesc Just copied from cctk_Reduction.h
- @date Thu Feb 21 14:36:02 CET 2002
- @author Jonathan Thornburg <jthorn@aei.mpg.de>
- @hdesc add more comments, add new stuff for new interpolator API
+ @date Thu Feb 21 14:36:02 CET 2002
+ @author Jonathan Thornburg <jthorn@aei.mpg.de>
+ @hdesc add more comments, add new stuff for new interpolator API
@endhistory
+ @version $Header$
@@*/
@@ -30,115 +31,61 @@ extern "C"
/*
* typedefs for interpolation operator routines
*/
-typedef int (*cInterpOperatorGV)(cGH *GH,
- const char *coord_system,
- int num_points,
- int num_in_array_indices,
- int num_out_arrays,
- 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[]);
-typedef int (*cInterpOperatorLocal)(cGH *GH,
- int num_points,
- int num_dims,
- int num_in_arrays,
- int num_out_arrays,
- 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[]);
-typedef int (*cInterpOpLocalUniform)(int N_dims,
- int param_table_handle,
- /***** coordinate system *****/
- const CCTK_REAL coord_origin[],
- const CCTK_REAL coord_delta[],
- /***** interpolation points *****/
- int N_interp_points,
- int interp_coords_type_code,
- const void *const interp_coords[],
- /***** input arrays *****/
- int N_input_arrays,
- const CCTK_INT input_array_dims[],
- const CCTK_INT input_array_type_codes[],
- const void *const input_arrays[],
- /***** output arrays *****/
- int N_output_arrays,
- const CCTK_INT output_array_type_codes[],
- void *const output_arrays[]);
+typedef int (*cInterpOpLocalUniform) (int N_dims,
+ int param_table_handle,
+ /***** coordinate system *****/
+ const CCTK_REAL coord_origin[],
+ const CCTK_REAL coord_delta[],
+ /***** interpolation points *****/
+ int N_interp_points,
+ int interp_coords_type_code,
+ const void *const interp_coords[],
+ /***** input arrays *****/
+ int N_input_arrays,
+ const CCTK_INT input_array_dims[],
+ const CCTK_INT input_array_type_codes[],
+ const void *const input_arrays[],
+ /***** output arrays *****/
+ int N_output_arrays,
+ const CCTK_INT output_array_type_codes[],
+ void *const output_arrays[]);
/*
* prototypes for user-visible interpolation-registration API
*/
int CCTK_InterpHandle (const char *name);
-#define CCTK_InterpRegisterOperatorGV(operator_ptr, operator_name) \
- CCTKi_InterpRegisterOperatorGV(operator_ptr, \
- operator_name, \
- CCTK_THORNSTRING) /* end macro */
-int CCTKi_InterpRegisterOperatorGV(cInterpOperatorGV operator_ptr,
- const char *operator_name,
- const char *thorn_name);
+int CCTK_InterpRegisterOpLocalUniform (cInterpOpLocalUniform operator_ptr,
+ const char *operator_name,
+ const char *thorn_name);
-#define CCTK_InterpRegisterOperatorLocal(operator_ptr, operator_name) \
- CCTKi_InterpRegisterOperatorLocal(operator_ptr, \
- operator_name, \
- CCTK_THORNSTRING) /* end macro */
-int CCTKi_InterpRegisterOperatorLocal(cInterpOperatorLocal operator_ptr,
- const char *operator_name,
- const char *thorn_name);
-
-int CCTK_InterpRegisterOpLocalUniform(cInterpOpLocalUniform operator_ptr,
- const char *operator_name,
- const char *thorn_name);
-
-const char *CCTK_InterpOperatorImplementation(int handle);
-const char *CCTK_InterpOperator(int handle);
-int CCTK_NumInterpOperators(void);
+const char *CCTK_InterpOperatorImplementation (int handle);
+const char *CCTK_InterpOperator (int handle);
+int CCTK_NumInterpOperators (void);
/*
* prototypes for user-visible interpolation API
*/
-int CCTK_InterpGV (cGH *GH,
- int operator_handle,
- int coord_system_handle,
- int num_points,
- int num_in_array_indices,
- int num_out_arrays,
- ...);
-int CCTK_InterpLocal (cGH *GH,
- int operator_handle,
- int num_points,
- int num_dims,
- int num_in_arrays,
- int num_out_arrays,
- ...);
-int CCTK_InterpLocalUniform(int N_dims,
- int operator_handle,
- int param_table_handle,
- /***** coordinate system *****/
- const CCTK_REAL coord_origin[],
- const CCTK_REAL coord_delta[],
- /***** interpolation points *****/
- int N_interp_points,
- int interp_coords_type_code,
- const void *const interp_coords[],
- /***** input arrays *****/
- int N_input_arrays,
- const CCTK_INT input_array_dims[],
- const CCTK_INT input_array_type_codes[],
- const void *const input_arrays[],
- /***** output arrays *****/
- int N_output_arrays,
- const CCTK_INT output_array_type_codes[],
- void *const output_arrays[]);
+int CCTK_InterpLocalUniform (int N_dims,
+ int operator_handle,
+ int param_table_handle,
+ /***** coordinate system *****/
+ const CCTK_REAL coord_origin[],
+ const CCTK_REAL coord_delta[],
+ /***** interpolation points *****/
+ int N_interp_points,
+ int interp_coords_type_code,
+ const void *const interp_coords[],
+ /***** input arrays *****/
+ int N_input_arrays,
+ const CCTK_INT input_array_dims[],
+ const CCTK_INT input_array_type_codes[],
+ const void *const input_arrays[],
+ /***** output arrays *****/
+ int N_output_arrays,
+ const CCTK_INT output_array_type_codes[],
+ void *const output_arrays[]);
/*
* error codes for CCTK_InterpLocalUniform()