aboutsummaryrefslogtreecommitdiff
path: root/src/local_reductions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/local_reductions.h')
-rw-r--r--src/local_reductions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local_reductions.h b/src/local_reductions.h
index 533eef6..ac4c8aa 100644
--- a/src/local_reductions.h
+++ b/src/local_reductions.h
@@ -58,7 +58,7 @@ extern "C" {
} \
sum_indices += actual_indices[k]*product; \
} \
- weight_value = ((CCTK_REAL *) weight)[sum_indices]; \
+ weight_value = ((const CCTK_REAL *) weight)[sum_indices]; \
\
REDUCTION_PREOP_CAST(inval, typed_vdata,sum_indices, out_type); \
WEIGHTED_REDUCTION_OPERATION(*outval,inval,weight_value); \