aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetReduce/src
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetReduce/src')
-rw-r--r--Carpet/CarpetReduce/src/reduce.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetReduce/src/reduce.cc b/Carpet/CarpetReduce/src/reduce.cc
index 6005a070e..a189cc4cf 100644
--- a/Carpet/CarpetReduce/src/reduce.cc
+++ b/Carpet/CarpetReduce/src/reduce.cc
@@ -429,8 +429,8 @@ namespace CarpetReduce {
T mycnt = *(T*)cnt;
vect<int,dim> imin, imax;
for (int d=0; d<dim; ++d) {
- imin[d] = bbox[2*d ] ? 0 : nghostzones[d];
- imax[d] = bbox[2*d+1] ? lsh[d] : lsh[d] - nghostzones[d];
+ imin[d] = (bbox[2*d ] ? 0 : nghostzones[d]);
+ imax[d] = lsh[d] - (bbox[2*d+1] ? 0 : nghostzones[d]);
}
assert (dim==3);
for (int k=imin[2]; k<imax[2]; ++k) {