Skip to content

Commit

Permalink
compiler: simplify solution
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Oct 19, 2023
1 parent b1868d3 commit 82e1274
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions devito/ir/clusters/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,14 @@ def dspace(self):
intervals = intervals.promote(lambda d: not d.is_Sub)
intervals = intervals.zero(set(intervals.dimensions) - oobs)

# Buffered TimeDimensions should not shirnk their upper time offset
# Buffered TimeDimensions should inherit the higher upper bound
# of the involved parts
for f, v in parts.items():
if f.is_TimeFunction:
if f.save and not f.time_dim.is_Conditional:
try:
if f.save:
intervals = intervals.ceil(v[f.time_dim])
except:
pass

return DataSpace(intervals, parts)

Expand Down

0 comments on commit 82e1274

Please sign in to comment.