aboutsummaryrefslogtreecommitdiff
path: root/src/GeneralizedPolynomial-Uniform/Lagrange/2d.cube.order2.smooth0.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/GeneralizedPolynomial-Uniform/Lagrange/2d.cube.order2.smooth0.c')
-rw-r--r--src/GeneralizedPolynomial-Uniform/Lagrange/2d.cube.order2.smooth0.c64
1 files changed, 33 insertions, 31 deletions
diff --git a/src/GeneralizedPolynomial-Uniform/Lagrange/2d.cube.order2.smooth0.c b/src/GeneralizedPolynomial-Uniform/Lagrange/2d.cube.order2.smooth0.c
index d75a198..5aa62ad 100644
--- a/src/GeneralizedPolynomial-Uniform/Lagrange/2d.cube.order2.smooth0.c
+++ b/src/GeneralizedPolynomial-Uniform/Lagrange/2d.cube.order2.smooth0.c
@@ -9,9 +9,13 @@
#include "util_ErrorCodes.h"
#include "cctk.h"
#include "../InterpLocalUniform.h"
+#include "../common/structs.h"
+#include "../common/fetch.h"
+#include "../common/evaluate.h"
+#include "../common/store.h"
/* function prototype */
-#define FUNCTION_NAME LocalInterp_ULagrange_2dcube_20
+#define FUNCTION_NAME LocalInterp_ULagrange_2d_cube20
#include "../template.h"
#define N_DIMS 2
@@ -27,36 +31,34 @@
#define HAVE_OP_DXY
#define HAVE_OP_DYY
-#define DATA_VAR_DCL_FILE_NAME "../common/2d.cube.size3/data-var.dcl.c"
-#define DATA_VAR_ASSIGN_FILE_NAME "../common/2d.cube.size3/data-var.assign.c"
-
-#define COEFF_I_VAR_STORE_FILE_NAME "../common/2d.cube.size3/coeff-I.store.c"
-#define COEFF_DX_VAR_STORE_FILE_NAME "../common/2d.cube.size3/coeff-dx.store.c"
-#define COEFF_DY_VAR_STORE_FILE_NAME "../common/2d.cube.size3/coeff-dy.store.c"
-#define COEFF_DXX_VAR_STORE_FILE_NAME "../common/2d.cube.size3/coeff-dxx.store.c"
-#define COEFF_DXY_VAR_STORE_FILE_NAME "../common/2d.cube.size3/coeff-dxy.store.c"
-#define COEFF_DYY_VAR_STORE_FILE_NAME "../common/2d.cube.size3/coeff-dyy.store.c"
-
-#define COEFF_I_DCL_FILE_NAME "../common/2d.cube.size3/coeff-I.dcl.c"
-#define COEFF_DX_DCL_FILE_NAME "../common/2d.cube.size3/coeff-dx.dcl.c"
-#define COEFF_DY_DCL_FILE_NAME "../common/2d.cube.size3/coeff-dy.dcl.c"
-#define COEFF_DXX_DCL_FILE_NAME "../common/2d.cube.size3/coeff-dxx.dcl.c"
-#define COEFF_DXY_DCL_FILE_NAME "../common/2d.cube.size3/coeff-dxy.dcl.c"
-#define COEFF_DYY_DCL_FILE_NAME "../common/2d.cube.size3/coeff-dyy.dcl.c"
-
-#define INTERP_I_COMPUTE_FILE_NAME "../common/2d.cube.size3/interp-I.compute.c"
-#define INTERP_DX_COMPUTE_FILE_NAME "../common/2d.cube.size3/interp-dx.compute.c"
-#define INTERP_DY_COMPUTE_FILE_NAME "../common/2d.cube.size3/interp-dy.compute.c"
-#define INTERP_DXX_COMPUTE_FILE_NAME "../common/2d.cube.size3/interp-dxx.compute.c"
-#define INTERP_DXY_COMPUTE_FILE_NAME "../common/2d.cube.size3/interp-dxy.compute.c"
-#define INTERP_DYY_COMPUTE_FILE_NAME "../common/2d.cube.size3/interp-dyy.compute.c"
-
-#define COEFF_I_COMPUTE_FILE_NAME "2d.coeffs/2d.cube.order2.smooth0/coeff-I.compute.c"
-#define COEFF_DX_COMPUTE_FILE_NAME "2d.coeffs/2d.cube.order2.smooth0/coeff-dx.compute.c"
-#define COEFF_DY_COMPUTE_FILE_NAME "2d.coeffs/2d.cube.order2.smooth0/coeff-dy.compute.c"
-#define COEFF_DXX_COMPUTE_FILE_NAME "2d.coeffs/2d.cube.order2.smooth0/coeff-dxx.compute.c"
-#define COEFF_DXY_COMPUTE_FILE_NAME "2d.coeffs/2d.cube.order2.smooth0/coeff-dxy.compute.c"
-#define COEFF_DYY_COMPUTE_FILE_NAME "2d.coeffs/2d.cube.order2.smooth0/coeff-dyy.compute.c"
+#define XYZ x, y
+#define FP_XYZ fp x, fp y
+#define STRIDE_IJK stride_i, stride_j
+#define JACOBIAN_MIJK_STRIDE Jacobian_mi_stride, Jacobian_mj_stride
+
+#define DATA_STRUCT data_struct_2d_cube_size3
+#define COEFFS_STRUCT coeffs_struct_2d_cube_size3
+
+#define FETCH_DATA_REAL LocalInterp_fetch_2d_cube3_r
+#define FETCH_DATA_REAL4 LocalInterp_fetch_2d_cube3_r4
+#define FETCH_DATA_REAL8 LocalInterp_fetch_2d_cube3_r8
+#define FETCH_DATA_REAL16 LocalInterp_fetch_2d_cube3_r16
+#define FETCH_DATA_COMPLEX LocalInterp_fetch_2d_cube3_c
+#define FETCH_DATA_COMPLEX8 LocalInterp_fetch_2d_cube3_c8
+#define FETCH_DATA_COMPLEX16 LocalInterp_fetch_2d_cube3_c16
+#define FETCH_DATA_COMPLEX32 LocalInterp_fetch_2d_cube3_c32
+
+#define EVALUATE_MOLECULE LocalInterp_eval_2d_cube3
+
+#define STORE_COEFFS LocalInterp_store_2d_cube3
+
+/* note pathnames are all relative to "../template.c" */
+#define COEFFS_I_COMPUTE_FILE_NAME "Lagrange/2d.coeffs/2d.cube.order2.smooth0/coeffs-I.compute.c"
+#define COEFFS_DX_COMPUTE_FILE_NAME "Lagrange/2d.coeffs/2d.cube.order2.smooth0/coeffs-dx.compute.c"
+#define COEFFS_DY_COMPUTE_FILE_NAME "Lagrange/2d.coeffs/2d.cube.order2.smooth0/coeffs-dy.compute.c"
+#define COEFFS_DXX_COMPUTE_FILE_NAME "Lagrange/2d.coeffs/2d.cube.order2.smooth0/coeffs-dxx.compute.c"
+#define COEFFS_DXY_COMPUTE_FILE_NAME "Lagrange/2d.coeffs/2d.cube.order2.smooth0/coeffs-dxy.compute.c"
+#define COEFFS_DYY_COMPUTE_FILE_NAME "Lagrange/2d.coeffs/2d.cube.order2.smooth0/coeffs-dyy.compute.c"
/* actual code */
#include "../template.c"