Skip to content

Commit fc398b6

Browse files
committed
compiler: Fix occurence of NullInterval after rebase
1 parent 4e1e142 commit fc398b6

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

devito/deprecations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ class DevitoDeprecation():
66

77
@cached_property
88
def coeff_warn(self):
9-
warn("The Coefficient API is deprecated and will be removed, coefficients should"
9+
warn("The Coefficient API is deprecated and will be removed, coefficients should "
1010
"be passed directly to the derivative object `u.dx(weights=...)",
1111
DeprecationWarning, stacklevel=2)
1212
return
1313

1414
@cached_property
1515
def symbolic_warn(self):
16-
warn("coefficients='symbolic' is deprecated, coefficients should"
16+
warn("coefficients='symbolic' is deprecated, coefficients should "
1717
"be passed directly to the derivative object `u.dx(weights=...)",
1818
DeprecationWarning, stacklevel=2)
1919
return

devito/ir/clusters/cluster.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,12 @@ def dspace(self):
393393
# intersecting intervals with matching only dimensions
394394
for f, v in parts.items():
395395
for i in v:
396-
# oobs check is not required but helps reduce
397-
# interval reconstruction
398-
if i.dim in oobs and i.dim in f.dimensions:
396+
if i.dim in self.ispace and i.dim in f.dimensions:
397+
# oobs check is not required but helps reduce
398+
# interval reconstruction
399399
ii = intervals[i.dim].intersection(v[i.dim])
400-
intervals = intervals.set_upper(i.dim, ii.upper)
400+
if not ii.is_Null:
401+
intervals = intervals.set_upper(i.dim, ii.upper)
401402

402403
# E.g., `db0 -> time`, but `xi NOT-> x`
403404
intervals = intervals.promote(lambda d: not d.is_Sub)

0 commit comments

Comments
 (0)