aboutsummaryrefslogtreecommitdiff
path: root/src/copy_mask.hh
diff options
context:
space:
mode:
authordiener <diener@4ec1db94-0e4f-0410-ada3-8bed251432c9>2008-02-05 22:44:56 +0000
committerdiener <diener@4ec1db94-0e4f-0410-ada3-8bed251432c9>2008-02-05 22:44:56 +0000
commitd822d7044d70a9fd43c8be48b0c5bdce51789ed9 (patch)
tree965ae465296e0b26971012df86712c7b75b7f814 /src/copy_mask.hh
parent9e06e812ba64f52bfd91e4cd933c416d58fb4166 (diff)
Change the scheme for reductions. Before, reductions was done over the full
grid functions using CCTK_Reduce. Now, reductions are done alongside the computations into local arrays and then these are reduced using CCTK_ReduceLocArrayToArray1D. This is much more efficient. In addition OpenMP directives are added to allow for mixed MPI/OpenMP usage. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/NoExcision/trunk@15 4ec1db94-0e4f-0410-ada3-8bed251432c9
Diffstat (limited to 'src/copy_mask.hh')
-rw-r--r--src/copy_mask.hh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/copy_mask.hh b/src/copy_mask.hh
new file mode 100644
index 0000000..bb016f9
--- /dev/null
+++ b/src/copy_mask.hh
@@ -0,0 +1,11 @@
+#include <cctk.h>
+#include <cctk_Arguments.h>
+
+namespace CarpetMask {
+
+ extern "C" {
+ void
+ CopyMask (CCTK_ARGUMENTS);
+ }
+
+} // namespace CarpetMask