diff options
Diffstat (limited to 'src/common/load-template.c')
-rw-r--r-- | src/common/load-template.c | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/src/common/load-template.c b/src/common/load-template.c index 5e197f7..5caa23b 100644 --- a/src/common/load-template.c +++ b/src/common/load-template.c @@ -16,28 +16,35 @@ #undef DATA #define DATA DATA_REAL +void LOAD_FUNCTION_NAME(r)(const CCTK_REAL *ptr, + INT_STRIDE_IJK, + struct DATA_STRUCT *data) +{ +#include LOAD_DATA_FILE_NAME +} + #ifdef HAVE_CCTK_REAL4 - void LOAD_FUNCTION_NAME(r4)(const CCTK_REAL4 *restrict const ptr, + void LOAD_FUNCTION_NAME(r4)(const CCTK_REAL4 *ptr, INT_STRIDE_IJK, - struct DATA_STRUCT *restrict const data) + struct DATA_STRUCT *data) { #include LOAD_DATA_FILE_NAME } #endif #ifdef HAVE_CCTK_REAL8 - void LOAD_FUNCTION_NAME(r8)(const CCTK_REAL8 *restrict const ptr, + void LOAD_FUNCTION_NAME(r8)(const CCTK_REAL8 *ptr, INT_STRIDE_IJK, - struct DATA_STRUCT *restrict const data) + struct DATA_STRUCT *data) { #include LOAD_DATA_FILE_NAME } #endif #ifdef HAVE_CCTK_REAL16 - void LOAD_FUNCTION_NAME(r16)(const CCTK_REAL16 *restrict const ptr, + void LOAD_FUNCTION_NAME(r16)(const CCTK_REAL16 *ptr, INT_STRIDE_IJK, - struct DATA_STRUCT *restrict const data) + struct DATA_STRUCT *data) { #include LOAD_DATA_FILE_NAME } @@ -52,28 +59,35 @@ #undef DATA #define DATA DATA_COMPLEX +void LOAD_FUNCTION_NAME(c)(const CCTK_REAL (*ptr)[COMPLEX_N_PARTS], + INT_STRIDE_IJK, int part, + struct DATA_STRUCT *data) +{ +#include LOAD_DATA_FILE_NAME +} + #ifdef HAVE_CCTK_COMPLEX8 - void LOAD_FUNCTION_NAME(c8)(const CCTK_REAL4 (*restrict const ptr)[COMPLEX_N_PARTS], + void LOAD_FUNCTION_NAME(c8)(const CCTK_REAL4 (*ptr)[COMPLEX_N_PARTS], INT_STRIDE_IJK, int part, - struct DATA_STRUCT *restrict const data) + struct DATA_STRUCT *data) { #include LOAD_DATA_FILE_NAME } #endif #ifdef HAVE_CCTK_COMPLEX16 - void LOAD_FUNCTION_NAME(c16)(const CCTK_REAL8 (*restrict const ptr)[COMPLEX_N_PARTS], + void LOAD_FUNCTION_NAME(c16)(const CCTK_REAL8 (*ptr)[COMPLEX_N_PARTS], INT_STRIDE_IJK, int part, - struct DATA_STRUCT *restrict const data) + struct DATA_STRUCT *data) { #include LOAD_DATA_FILE_NAME } #endif #ifdef HAVE_CCTK_COMPLEX32 - void LOAD_FUNCTION_NAME(c32)(const CCTK_REAL16 (*restrict const ptr)[COMPLEX_N_PARTS], + void LOAD_FUNCTION_NAME(c32)(const CCTK_REAL16 (*ptr)[COMPLEX_N_PARTS], INT_STRIDE_IJK, int part, - struct DATA_STRUCT *restrict const data) + struct DATA_STRUCT *data) { #include LOAD_DATA_FILE_NAME } |