aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetReduce/src/mask_allocate.c
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetReduce/src/mask_allocate.c')
-rw-r--r--Carpet/CarpetReduce/src/mask_allocate.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/Carpet/CarpetReduce/src/mask_allocate.c b/Carpet/CarpetReduce/src/mask_allocate.c
new file mode 100644
index 000000000..24029942d
--- /dev/null
+++ b/Carpet/CarpetReduce/src/mask_allocate.c
@@ -0,0 +1,24 @@
+#include <cctk.h>
+#include <cctk_Arguments.h>
+#include <cctk_Parameters.h>
+
+#include <assert.h>
+
+
+
+void
+MaskBase_AllocateMask (CCTK_ARGUMENTS)
+{
+ DECLARE_CCTK_ARGUMENTS;
+ DECLARE_CCTK_PARAMETERS;
+
+ /* Allocate helpers for the weight function */
+ if (verbose) {
+ CCTK_INFO ("Allocating weight function helpers");
+ }
+
+ int const ierr1 = CCTK_EnableGroupStorage (cctkGH, "CarpetReduce::iweight");
+ int const ierr2 = CCTK_EnableGroupStorage (cctkGH, "CarpetReduce::one");
+ assert (!ierr1);
+ assert (!ierr2);
+}