Skip to content

Commit

Permalink
compiler: Only relax upper dspace in case of save
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Oct 17, 2023
1 parent fbf3874 commit 95a18ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion devito/ir/clusters/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def dspace(self):

# Special case: if the factor of a ConditionalDimension has value 1,
# then we can safely resort to the parent's Interval
key = lambda d: d.is_Conditional and d.factor == 1
key = lambda d: d.is_Conditional and d.condition is None and d.factor == 1
intervals = intervals.promote(key)

parts[f] = intervals
Expand Down
2 changes: 0 additions & 2 deletions devito/ir/support/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,7 @@ def zero(self):

def ceil(self, o):
if o.is_Null:
# import pdb;pdb.set_trace()
return self._rebuild()

return Interval(self.dim, self.lower, o.upper, self.stamp)

def flip(self):
Expand Down

0 comments on commit 95a18ad

Please sign in to comment.