From 6c17b2c88de0017786f63a681747c33047b24b0c Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Fri, 1 Oct 2010 16:26:06 -0500 Subject: 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.) --- Carpet/CarpetLib/src/operator_prototypes_3d.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Carpet/CarpetLib/src/operator_prototypes_3d.hh') 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 + 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 -- cgit v1.2.3