From 3b17f6feb768ef00a03bfb1ac12c39eb46b5f238 Mon Sep 17 00:00:00 2001 From: schnetter Date: Thu, 11 Aug 2005 16:30:21 +0000 Subject: Support taking space or time derivatives while interpolating. So far implemented only for interpolating into 1D arrays. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/InterpToArray/trunk@5 6ca9aeac-0e4f-0410-a746-fe4df63e9d0c --- param.ccl | 10 ++++++++++ src/interp.c | 35 ++++++++++++++++++++++++++++++++++- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/param.ccl b/param.ccl index fee89d6..ab270b4 100644 --- a/param.ccl +++ b/param.ccl @@ -59,6 +59,16 @@ STRING array1d_vars[100] "Names of the grid functions that should be interpolate "^[A-Za-z][A-Za-z0-9_]*[:][:][A-Za-z][A-Za-z0-9_]*$" :: "grid function name" } "" +INT array1d_spacederivs[100] "Space derivative orders for each grid function" +{ + 0:* :: "" +} 0 + +INT array1d_timederivs[100] "Time derivative order for each grid function" +{ + 0:* :: "" +} 0 + REAL array1d_x0 "Origin" STEERABLE=always { *:* :: "" diff --git a/src/interp.c b/src/interp.c index badaead..91a84b8 100644 --- a/src/interp.c +++ b/src/interp.c @@ -28,6 +28,8 @@ InterpToArray (CCTK_ARGUMENTS) CCTK_INT * restrict inputs; CCTK_INT * restrict output_types; CCTK_POINTER * restrict outputs; + CCTK_INT * restrict operation_codes; + CCTK_INT * restrict time_deriv_order; int nvars; int npoints; @@ -97,7 +99,7 @@ InterpToArray (CCTK_ARGUMENTS) for (n=0; n