aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/operator_prototypes_3d.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2010-10-01 16:26:06 -0500
committerErik Schnetter <schnetter@cct.lsu.edu>2010-10-01 16:26:06 -0500
commit6c17b2c88de0017786f63a681747c33047b24b0c (patch)
tree542a40b54ce07d7b9d4ce67b7dd285fe9ee9efb5 /Carpet/CarpetLib/src/operator_prototypes_3d.hh
parent7015a58c6539d4acb7f5c27536a9ba0e3f7b2650 (diff)
CarpetLib: Add new transport operator "accumulate"
Add a new transport operator "accumulate", which accumulates ghost zones into grid functions. (This is in a sense the opposite of regular synchronisation, which copies grid function values into ghost zones.)
Diffstat (limited to 'Carpet/CarpetLib/src/operator_prototypes_3d.hh')
-rw-r--r--Carpet/CarpetLib/src/operator_prototypes_3d.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/operator_prototypes_3d.hh b/Carpet/CarpetLib/src/operator_prototypes_3d.hh
index 81a384d76..c4793f606 100644
--- a/Carpet/CarpetLib/src/operator_prototypes_3d.hh
+++ b/Carpet/CarpetLib/src/operator_prototypes_3d.hh
@@ -58,6 +58,16 @@ namespace CarpetLib {
ibbox3 const & restrict dstbbox,
ibbox3 const & restrict regbbox);
+ template <typename T>
+ void
+ accumulate_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>