From 0ffd6b7cd1eb04ff0fe432d64550fb9ea6ddd688 Mon Sep 17 00:00:00 2001 From: George Bisbas Date: Thu, 16 Nov 2023 15:49:12 +0000 Subject: [PATCH] compiler: Derive solution from oob set of dims --- devito/ir/clusters/cluster.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/devito/ir/clusters/cluster.py b/devito/ir/clusters/cluster.py index 3f8654fc2c..9e44f91fd7 100644 --- a/devito/ir/clusters/cluster.py +++ b/devito/ir/clusters/cluster.py @@ -362,13 +362,12 @@ def dspace(self): intervals = intervals.promote(lambda d: not d.is_Sub) intervals = intervals.zero(set(intervals.dimensions) - oobs) - # DataSpace intervals should derive their upper bound from - # the higher upper bound available in the involved parts + # Upper bound of intervals including dimensions classified for + # shifting should retain the "oobs" upper bound for f, v in parts.items(): - try: - intervals = intervals.ceil(v[f.time_dim]) - except: - pass + for i in v: + if i.dim in oobs: + intervals = intervals.ceil(v[i.dim]) return DataSpace(intervals, parts)