aboutsummaryrefslogtreecommitdiff
path: root/src/pughInterpGH.h
diff options
context:
space:
mode:
authortradke <tradke@1c20744c-e24a-42ec-9533-f5004cb800e5>2001-02-14 14:40:43 +0000
committertradke <tradke@1c20744c-e24a-42ec-9533-f5004cb800e5>2001-02-14 14:40:43 +0000
commit6d2aca99e8b9ff712ee47ebe23af38486e1b7d76 (patch)
tree3fe556c75713b13e33bb342a1f1e239f899ee2e2 /src/pughInterpGH.h
parent0c0c5fa551849e0ba780a9971ecc2f0c1533f6c8 (diff)
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
Diffstat (limited to 'src/pughInterpGH.h')
-rw-r--r--src/pughInterpGH.h71
1 files changed, 71 insertions, 0 deletions
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 */ ]);