diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-10-03 16:17:01 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-10-03 16:17:01 -0500 |
commit | 3845f0f66b56ffd6de9f24c89110d9d3421cfc6d (patch) | |
tree | 796aeadd18023b65451382de74afa38b1cb456c7 /Carpet/CarpetInterp2/interface.ccl | |
parent | 30c4473770975f7bfbaebcdcb971a779a238405b (diff) |
CarpetInterp2: Export a simple interpolator API as aliased function
Diffstat (limited to 'Carpet/CarpetInterp2/interface.ccl')
-rw-r--r-- | Carpet/CarpetInterp2/interface.ccl | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/Carpet/CarpetInterp2/interface.ccl b/Carpet/CarpetInterp2/interface.ccl index fc822c9e1..1a8e1c177 100644 --- a/Carpet/CarpetInterp2/interface.ccl +++ b/Carpet/CarpetInterp2/interface.ccl @@ -41,7 +41,24 @@ CCTK_INT FUNCTION \ CCTK_INT IN npoints, \ CCTK_POINTER_TO_CONST IN globalcoords, \ CCTK_INT ARRAY OUT patch, \ - CCTK_POINTER IN localcoords, \ - CCTK_POINTER IN dadx, \ - CCTK_POINTER IN ddadxdx) + CCTK_POINTER IN localcoords, \ + CCTK_POINTER IN dadx, \ + CCTK_POINTER IN ddadxdx) USES FUNCTION MultiPatch_GlobalToLocal + + + +CCTK_INT FUNCTION \ + InterpGridArrays \ + (CCTK_POINTER_TO_CONST IN cctkGH, \ + CCTK_INT IN N_dims, \ + CCTK_INT IN order, \ + CCTK_INT IN N_interp_points, \ + CCTK_POINTER_TO_CONST IN interp_coords, \ + CCTK_INT IN N_input_arrays, \ + CCTK_INT ARRAY IN input_array_indices, \ + CCTK_INT IN N_output_arrays, \ + CCTK_POINTER IN output_arrays) +PROVIDES FUNCTION InterpGridArrays \ + WITH CarpetInterp2_InterpGridArrays \ + LANGUAGE C |