aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetReduce/src/mask_allocate.c
blob: c1c28afeb6be47264936e385dcf4214a537601dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <cctk.h>
#include <cctk_Arguments.h>
#include <cctk_Parameters.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");
  }
  
  CCTK_EnableGroupStorage (cctkGH, "CarpetReduce::iweight");
  CCTK_EnableGroupStorage (cctkGH, "CarpetReduce::one");
  
  /* Initialise excised cell count */
  * excised_cells = 0.0;
}