aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/operator_prototypes.hh
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetLib/src/operator_prototypes.hh')
-rw-r--r--Carpet/CarpetLib/src/operator_prototypes.hh241
1 files changed, 0 insertions, 241 deletions
diff --git a/Carpet/CarpetLib/src/operator_prototypes.hh b/Carpet/CarpetLib/src/operator_prototypes.hh
index 0eb990923..1feae8a90 100644
--- a/Carpet/CarpetLib/src/operator_prototypes.hh
+++ b/Carpet/CarpetLib/src/operator_prototypes.hh
@@ -1,253 +1,12 @@
#ifndef OPERATOR_PROTOTYPES
#define OPERATOR_PROTOTYPES
-#include <cstdlib>
-
-#include <cctk.h>
-
-#include <vect.hh>
-#include <bbox.hh>
-
namespace CarpetLib {
- using namespace std;
-
-
-
- static inline
- size_t
- index3 (size_t const i, size_t const j, size_t const k,
- size_t const exti, size_t const extj, size_t const extk)
- {
-#ifdef CARPET_DEBUG
- assert (static_cast <ptrdiff_t> (i) >= 0 and i < exti);
- assert (static_cast <ptrdiff_t> (j) >= 0 and j < extj);
- assert (static_cast <ptrdiff_t> (k) >= 0 and k < extk);
-#endif
-
- return i + exti * (j + extj * k);
- }
-
-
-
- static int const dim3 = 3;
-
- typedef vect <bool, dim3> bvect3;
- typedef vect <int, dim3> ivect3;
- typedef bbox <int, dim3> ibbox3;
-
static int const reffact2 = 2;
-
-
- template <typename T>
- void
- copy_3d (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);
-
-
-
- template <typename T>
- void
- prolongate_3d_o1_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);
-
- template <typename T>
- void
- prolongate_3d_o3_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);
-
- template <typename T>
- void
- prolongate_3d_o5_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);
-
- template <typename T>
- void
- prolongate_3d_o7_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);
-
- template <typename T>
- void
- prolongate_3d_o9_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);
-
- template <typename T>
- void
- prolongate_3d_o11_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);
-
-
-
- template <typename T>
- void
- restrict_3d_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);
-
-
-
- template <typename T>
- void
- interpolate_3d_2tl (T const * restrict const src1,
- CCTK_REAL const t1,
- T const * restrict const src2,
- CCTK_REAL const t2,
- 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);
-
- template <typename T>
- 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);
-
- template <typename T>
- void
- interpolate_3d_4tl (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,
- T const * restrict const src4,
- CCTK_REAL const t4,
- 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);
-
- template <typename T>
- void
- interpolate_3d_5tl (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,
- T const * restrict const src4,
- CCTK_REAL const t4,
- T const * restrict const src5,
- CCTK_REAL const t5,
- 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);
-
- template <typename T>
- void
- interpolate_eno_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);
-
-
-
- template <typename T>
- 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);
-
- template <typename T>
- void
- prolongate_3d_cc_rf2_prim2std (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);
-
-
-
- template <typename T>
- 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);
-
-
-
} // namespace CarpetLib