aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/prolongate_3d_cc_rf2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetLib/src/prolongate_3d_cc_rf2.cc')
-rw-r--r--Carpet/CarpetLib/src/prolongate_3d_cc_rf2.cc58
1 files changed, 22 insertions, 36 deletions
diff --git a/Carpet/CarpetLib/src/prolongate_3d_cc_rf2.cc b/Carpet/CarpetLib/src/prolongate_3d_cc_rf2.cc
index a6cd9207c..751380e53 100644
--- a/Carpet/CarpetLib/src/prolongate_3d_cc_rf2.cc
+++ b/Carpet/CarpetLib/src/prolongate_3d_cc_rf2.cc
@@ -155,25 +155,18 @@ namespace CarpetLib {
- template
- void
- prolongate_3d_cc_rf2_std2prim (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
- prolongate_3d_cc_rf2_std2prim (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 \
+ prolongate_3d_cc_rf2_std2prim (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
@@ -279,25 +272,18 @@ namespace CarpetLib {
- template
- void
- prolongate_3d_cc_rf2_prim2std (CCTK_REAL const * restrict const src,
- ivect const & restrict srcext,
- CCTK_REAL * restrict const dst,
- ivect const & restrict dstext,
- ibbox3 const & restrict srcbbox,
- ibbox3 const & restrict dstbbox,
- ibbox3 const & restrict regbbox);
-
- template
- void
- prolongate_3d_cc_rf2_prim2std (CCTK_COMPLEX const * restrict const src,
- ivect const & restrict srcext,
- CCTK_COMPLEX * restrict const dst,
- ivect const & restrict dstext,
- ibbox3 const & restrict srcbbox,
- ibbox3 const & restrict dstbbox,
+#define INSTANTIATE(T) \
+ template \
+ void \
+ prolongate_3d_cc_rf2_prim2std (T const * restrict const src, \
+ ivect const & restrict srcext, \
+ T * restrict const dst, \
+ ivect const & restrict dstext, \
+ ibbox3 const & restrict srcbbox, \
+ ibbox3 const & restrict dstbbox, \
ibbox3 const & restrict regbbox);
+#include "instantiate"
+#undef INSTANTIATE