aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetReduce/src/mask_allocate.c
blob: 24029942d6948ecd6157a946112d083c8add5f1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
}