aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/interpolate_3d_3tl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetLib/src/interpolate_3d_3tl.cc')
-rw-r--r--Carpet/CarpetLib/src/interpolate_3d_3tl.cc47
1 files changed, 17 insertions, 30 deletions
diff --git a/Carpet/CarpetLib/src/interpolate_3d_3tl.cc b/Carpet/CarpetLib/src/interpolate_3d_3tl.cc
index 3b092a1ac..afcff458b 100644
--- a/Carpet/CarpetLib/src/interpolate_3d_3tl.cc
+++ b/Carpet/CarpetLib/src/interpolate_3d_3tl.cc
@@ -141,37 +141,24 @@ namespace CarpetLib {
- template
- void
- interpolate_3d_3tl (CCTK_REAL const * restrict const src1,
- CCTK_REAL const t1,
- CCTK_REAL const * restrict const src2,
- CCTK_REAL const t2,
- CCTK_REAL const * restrict const src3,
- CCTK_REAL const t3,
- ivect3 const & restrict srcext,
- CCTK_REAL * restrict const dst,
- CCTK_REAL const t,
- ivect3 const & restrict dstext,
- ibbox3 const & restrict srcbbox,
- ibbox3 const & restrict dstbbox,
- ibbox3 const & restrict regbbox);
-
- template
- void
- interpolate_3d_3tl (CCTK_COMPLEX const * restrict const src1,
- CCTK_REAL const t1,
- CCTK_COMPLEX const * restrict const src2,
- CCTK_REAL const t2,
- CCTK_COMPLEX const * restrict const src3,
- CCTK_REAL const t3,
- ivect3 const & restrict srcext,
- CCTK_COMPLEX * restrict const dst,
- CCTK_REAL const t,
- ivect3 const & restrict dstext,
- ibbox3 const & restrict srcbbox,
- ibbox3 const & restrict dstbbox,
+#define INSTANTIATE(T) \
+ template \
+ void \
+ interpolate_3d_3tl (T const * restrict const src1, \
+ CCTK_REAL const t1, \
+ T const * restrict const src2, \
+ CCTK_REAL const t2, \
+ T const * restrict const src3, \
+ CCTK_REAL const t3, \
+ ivect3 const & restrict srcext, \
+ T * restrict const dst, \
+ CCTK_REAL const t, \
+ ivect3 const & restrict dstext, \
+ ibbox3 const & restrict srcbbox, \
+ ibbox3 const & restrict dstbbox, \
ibbox3 const & restrict regbbox);
+#include "instantiate"
+#undef INSTANTIATE