Skip to content

Commit 8d1fa60

Browse files
committed
misc: Isolated fixes that only break things in PRO
1 parent 83d7f50 commit 8d1fa60

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

devito/ir/support/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def distance(self, other):
438438

439439
# It still could be an imaginary dependence, e.g. `a[3] -> a[4]` or, more
440440
# nasty, `a[i+1, 3] -> a[i, 4]`
441-
for i, j in zip(self[n:], other[n:], strict=True):
441+
for i, j in zip(self[n:], other[n:], strict=False):
442442
if i == j:
443443
ret.append(S.Zero)
444444
else:

devito/ir/support/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def detect_accesses(exprs):
140140
for e in retrieve_indexed(exprs, deep=True):
141141
f = e.function
142142

143-
for a, d0 in zip(e.indices, f.dimensions, strict=True):
143+
for a, d0 in zip(e.indices, f.dimensions, strict=False):
144144
if isinstance(a, Indirection):
145145
a = a.mapped
146146

devito/passes/clusters/buffering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def write_to(self):
562562
# Analogous to the above, we need to include the halo region as well
563563
ihalo = IntervalGroup([
564564
Interval(i.dim, -h.left, h.right, i.stamp)
565-
for i, h in zip(ispace, self.b._size_halo, strict=True)
565+
for i, h in zip(ispace, self.b._size_halo, strict=False)
566566
])
567567

568568
ispace = IterationSpace.union(ispace, IterationSpace(ihalo))

0 commit comments

Comments
 (0)