From 6d2aca99e8b9ff712ee47ebe23af38486e1b7d76 Mon Sep 17 00:00:00 2001 From: tradke Date: Wed, 14 Feb 2001 14:40:43 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r2, which included commits to RCS files with non-trunk default branches. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHInterp/trunk@3 1c20744c-e24a-42ec-9533-f5004cb800e5 --- src/pughInterpGH.h | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 src/pughInterpGH.h (limited to 'src/pughInterpGH.h') diff --git a/src/pughInterpGH.h b/src/pughInterpGH.h new file mode 100644 index 0000000..e6eef76 --- /dev/null +++ b/src/pughInterpGH.h @@ -0,0 +1,71 @@ + /*@@ + @file pughInterpGH.h + @date Sun Jul 04 1999 + @author Thomas Radke + @desc + Definition of GH extensions of thorn PUGHInterp and + declaration of function prototypes + @enddesc + @history + @endhistory +@@*/ + + +typedef struct +{ + int *send_count; /* number of elements to be sent */ + int *send_displ; /* offset of each element to be sent */ + int *recv_count; /* number of elements to be received */ + int *recv_displ; /* offset of each element to be received */ + + CCTK_INT *num_points_to; /* number of coordinate points to be sent */ + CCTK_INT *num_points_from; /* number of coordinate points to be received */ + + int *whichproc; /* which processor does point i belong to */ + int *indices; /* indices to sort from processor-sorted into + point-sorted order */ +} pughInterpGH; + + +/* prototypes of interpolation operators to be registered */ +int PUGHInterp_InterpGV (cGH *GH, + int order, + const char *coord_system, + 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[]); + +int PUGHInterp_InterpLocal (cGH *GH, + int order, + int num_points, + 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[]); + +/* prototypes of routines used internally */ +int PUGHInterp_Interpolate (int order, + int num_points, + int num_dims, + int num_arrays, + int dims[ /* num_dims */ ], + CCTK_REAL coord[ /* num_dims * num_points */ ], + CCTK_REAL origin[ /* num_dims */ ], + CCTK_REAL delta[ /* num_dims */ ], + int in_types[ /* num_arrays */ ], + void *in_arrays[ /* num_arrays */ ], + int out_types[ /* num_arrays */ ], + void *out_arrays[ /* num_arrays */ ]); -- cgit v1.2.3