aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetMask/src/mask_excluded.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetMask/src/mask_excluded.cc')
-rw-r--r--Carpet/CarpetMask/src/mask_excluded.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/Carpet/CarpetMask/src/mask_excluded.cc b/Carpet/CarpetMask/src/mask_excluded.cc
index 6016c26b5..1b1c0beb5 100644
--- a/Carpet/CarpetMask/src/mask_excluded.cc
+++ b/Carpet/CarpetMask/src/mask_excluded.cc
@@ -26,13 +26,13 @@ namespace CarpetMask {
DECLARE_CCTK_ARGUMENTS;
DECLARE_CCTK_PARAMETERS;
- CCTK_REAL * const weight =
- static_cast <CCTK_REAL *>
- (CCTK_VarDataPtr (cctkGH, 0, "CarpetReduce::weight"));
+ CCTK_INT * const iweight =
+ static_cast <CCTK_INT *>
+ (CCTK_VarDataPtr (cctkGH, 0, "CarpetReduce::iweight"));
- if (not weight) {
+ if (not iweight) {
CCTK_WARN (CCTK_WARN_ABORT,
- "CarpetReduce is not active, or CarpetReduce::mask does not have storage");
+ "CarpetReduce is not active, or CarpetReduce::iweight does not have storage");
}
for (int n = 0; n < 10; ++ n) {
@@ -60,7 +60,7 @@ namespace CarpetMask {
dx2 + dy2 + dz2 >= r2 :
dx2 + dy2 + dz2 <= r2)
{
- weight[ind] = 0.0;
+ iweight[ind] = 0;
}
} CCTK_ENDLOOP3_ALL(CarpetExcludedSetup);