From 552c480ccb7b6c4b3750089246b3a17e1d96c5cd Mon Sep 17 00:00:00 2001 From: George Bisbas Date: Fri, 12 Jul 2024 17:56:31 +0100 Subject: [PATCH] compiler: Fix occurence of NullInterval after rebase --- devito/ir/clusters/cluster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devito/ir/clusters/cluster.py b/devito/ir/clusters/cluster.py index 22333f529f..a316458715 100644 --- a/devito/ir/clusters/cluster.py +++ b/devito/ir/clusters/cluster.py @@ -397,7 +397,8 @@ def dspace(self): # interval reconstruction if i.dim in oobs and i.dim in f.dimensions: ii = intervals[i.dim].intersection(v[i.dim]) - intervals = intervals.set_upper(i.dim, ii.upper) + if not ii.is_Null: + intervals = intervals.set_upper(i.dim, ii.upper) # E.g., `db0 -> time`, but `xi NOT-> x` intervals = intervals.promote(lambda d: not d.is_Sub)