Skip to content

Commit e2d6547

Browse files
committed
compiler: Derive solution from oob set of dims
1 parent 95e258e commit e2d6547

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

devito/ir/clusters/cluster.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,12 @@ def dspace(self):
362362
intervals = intervals.promote(lambda d: not d.is_Sub)
363363
intervals = intervals.zero(set(intervals.dimensions) - oobs)
364364

365-
# DataSpace intervals should derive their upper bound from
366-
# the higher upper bound available in the involved parts
365+
# Upper bound of intervals including dimensions classified for
366+
# shifting should retain the "oobs" upper bound
367367
for f, v in parts.items():
368-
try:
369-
intervals = intervals.ceil(v[f.time_dim])
370-
except:
371-
pass
368+
for i in v:
369+
if i.dim in oobs:
370+
intervals = intervals.ceil(v[i.dim])
372371

373372
return DataSpace(intervals, parts)
374373

0 commit comments

Comments
 (0)