aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/restrict_3d_cc_rf2.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/restrict_3d_cc_rf2.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/restrict_3d_cc_rf2.cc')
-rw-r--r--Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc29
1 files changed, 11 insertions, 18 deletions
diff --git a/Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc b/Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc
index b45ba8f93..5fa543604 100644
--- a/Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc
+++ b/Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc
@@ -136,25 +136,18 @@ namespace CarpetLib {
- template
- void
- restrict_3d_cc_rf2 (CCTK_REAL const * restrict const src,
- ivect3 const & restrict srcext,
- CCTK_REAL * restrict const dst,
- ivect3 const & restrict dstext,
- ibbox3 const & restrict srcbbox,
- ibbox3 const & restrict dstbbox,
- ibbox3 const & restrict regbbox);
-
- template
- void
- restrict_3d_cc_rf2 (CCTK_COMPLEX const * restrict const src,
- ivect3 const & restrict srcext,
- CCTK_COMPLEX * restrict const dst,
- ivect3 const & restrict dstext,
- ibbox3 const & restrict srcbbox,
- ibbox3 const & restrict dstbbox,
+#define INSTANTIATE(T) \
+ template \
+ void \
+ restrict_3d_cc_rf2 (T const * restrict const src, \
+ ivect3 const & restrict srcext, \
+ T * restrict const dst, \
+ ivect3 const & restrict dstext, \
+ ibbox3 const & restrict srcbbox, \
+ ibbox3 const & restrict dstbbox, \
ibbox3 const & restrict regbbox);
+#include "instantiate"
+#undef INSTANTIATE