Skip to content

Commit b19bb09

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

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

0 commit comments

Comments
 (0)