aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/interpolate_3d_3tl.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-02-14 17:25:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-02-14 17:25:00 +0000
commit35d69645010c3e6d13f6ca2a209f8d6d2c58cf30 (patch)
tree9fe8907a829fdbef1c1f5af9237440cea8bd70e5 /Carpet/CarpetLib/src/interpolate_3d_3tl.cc
parent96604179cb8abcd0d1dd4b8569ee748b62622490 (diff)
CarpetLib: Use #include "instantiate" to instantiate the operators
Use #include "instantiate" to instantiate the transport operators. This allows e.g. switching off support for complex numbers. darcs-hash:20070214172513-dae7b-aef2b83617158679c80ac350c2837f519928ddda.gz
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