diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-02-04 17:40:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-02-04 17:40:00 +0000 |
commit | d1a89bfd53ceb0ca43721749e5f4da91080078aa (patch) | |
tree | 75fe0c7741cefcd7dcfaa72a4a894dbdc1ffafc7 /Carpet/CarpetLib/src/operator_prototypes.hh | |
parent | 84b8d17344762c61597e2b62056d92ee73fb414f (diff) |
CarpetLib: Clean up transport operators
Remove unused, #ifdef'ed out code from the operators. Since the
operators use now the bbox class, this checking is already performed
there.
Remove unused debugging code in the cell-centered operators.
Use the restrict qualifier in the prototypes.
darcs-hash:20070204174027-dae7b-743583b30d52646219411c98ad99486d10445e52.gz
Diffstat (limited to 'Carpet/CarpetLib/src/operator_prototypes.hh')
-rw-r--r-- | Carpet/CarpetLib/src/operator_prototypes.hh | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/Carpet/CarpetLib/src/operator_prototypes.hh b/Carpet/CarpetLib/src/operator_prototypes.hh index 05079ff22..c2a6e8fbc 100644 --- a/Carpet/CarpetLib/src/operator_prototypes.hh +++ b/Carpet/CarpetLib/src/operator_prototypes.hh @@ -45,56 +45,56 @@ namespace CarpetLib { template <typename T> void copy_3d (T const * restrict const src, - ivect3 const & srcext, + ivect3 const & restrict srcext, T * restrict const dst, - ivect3 const & dstext, - ibbox3 const & srcbbox, - ibbox3 const & dstbbox, - ibbox3 const & regbbox); + 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 & srcext, + ivect3 const & restrict srcext, T * restrict const dst, - ivect3 const & dstext, - ibbox3 const & srcbbox, - ibbox3 const & dstbbox, - ibbox3 const & regbbox); + 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 & srcext, + ivect3 const & restrict srcext, T * restrict const dst, - ivect3 const & dstext, - ibbox3 const & srcbbox, - ibbox3 const & dstbbox, - ibbox3 const & regbbox); + 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 & srcext, + ivect3 const & restrict srcext, T * restrict const dst, - ivect3 const & dstext, - ibbox3 const & srcbbox, - ibbox3 const & dstbbox, - ibbox3 const & regbbox); + 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 & srcext, + ivect3 const & restrict srcext, T * restrict const dst, - ivect3 const & dstext, - ibbox3 const & srcbbox, - ibbox3 const & dstbbox, - ibbox3 const & regbbox); + ivect3 const & restrict dstext, + ibbox3 const & restrict srcbbox, + ibbox3 const & restrict dstbbox, + ibbox3 const & restrict regbbox); @@ -104,13 +104,13 @@ namespace CarpetLib { CCTK_REAL const t1, T const * restrict const src2, CCTK_REAL const t2, - ivect3 const & srcext, + ivect3 const & restrict srcext, T * restrict const dst, CCTK_REAL const t, - ivect3 const & dstext, - ibbox3 const & srcbbox, - ibbox3 const & dstbbox, - ibbox3 const & regbbox); + ivect3 const & restrict dstext, + ibbox3 const & restrict srcbbox, + ibbox3 const & restrict dstbbox, + ibbox3 const & restrict regbbox); template <typename T> void @@ -120,47 +120,47 @@ namespace CarpetLib { CCTK_REAL const t2, T const * restrict const src3, CCTK_REAL const t3, - ivect3 const & srcext, + ivect3 const & restrict srcext, T * restrict const dst, CCTK_REAL const t, - ivect3 const & dstext, - ibbox3 const & srcbbox, - ibbox3 const & dstbbox, - ibbox3 const & regbbox); + 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 & srcext, + ivect3 const & restrict srcext, T * restrict const dst, - ivect3 const & dstext, - ibbox3 const & srcbbox, - ibbox3 const & dstbbox, - ibbox3 const & regbbox); + 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 & srcext, + ivect3 const & restrict srcext, T * restrict const dst, - ivect3 const & dstext, - ibbox3 const & srcbbox, - ibbox3 const & dstbbox, - ibbox3 const & regbbox); + 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 & srcext, + ivect3 const & restrict srcext, T * restrict const dst, - ivect3 const & dstext, - ibbox3 const & srcbbox, - ibbox3 const & dstbbox, - ibbox3 const & regbbox); + ivect3 const & restrict dstext, + ibbox3 const & restrict srcbbox, + ibbox3 const & restrict dstbbox, + ibbox3 const & restrict regbbox); |