Skip to content

Commit d36f063

Browse files
committed
compiler: Fix occurence of NullInterval after rebase
1 parent 18e61d4 commit d36f063

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

devito/deprecations.py

+2-2
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

+5-4
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,12 @@ def dspace(self):
395395
# intersecting intervals with matching only dimensions
396396
for f, v in parts.items():
397397
for i in v:
398-
# oobs check is not required but helps reduce
399-
# interval reconstruction
400-
if i.dim in oobs and i.dim in f.dimensions:
398+
if i.dim in self.ispace and i.dim in f.dimensions:
399+
# oobs check is not required but helps reduce
400+
# interval reconstruction
401401
ii = intervals[i.dim].intersection(v[i.dim])
402-
intervals = intervals.set_upper(i.dim, ii.upper)
402+
if not ii.is_Null:
403+
intervals = intervals.set_upper(i.dim, ii.upper)
403404

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

0 commit comments

Comments
 (0)