diff options
-rw-r--r-- | src/local_reductions.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/local_reductions.h b/src/local_reductions.h index 019651a..31d7c93 100644 --- a/src/local_reductions.h +++ b/src/local_reductions.h @@ -25,12 +25,12 @@ extern "C" { #define ITERATE_ON_ARRAY(i,cctk_type, in_data, out_type, out_num, mask_on,input_array_offset, indices, sum_indices, max_iter, iter, flag, actual_indices,input_array_strides, input_array_min_subscripts,product) \ { \ - iter = 0; \ - sum_indices = 0; \ - num_points = 1; \ const cctk_type * typed_vdata = (const cctk_type *)(in_data); \ out_type inval; \ out_type * outval = (out_type *) out_num; \ + iter = 0; \ + sum_indices = 0; \ + num_points = 1; \ REDUCTION_INITIAL( * outval) \ if ( mask_on == 1) \ { \ |