Skip to content

Commit 5ac9ccc

Browse files
committed
mpi: fix halo ispace with subdomains
1 parent 39f2b57 commit 5ac9ccc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devito/ir/clusters/algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def callback(self, clusters, prefix, seen=None):
472472
expr = Eq(self.B, HaloTouch(*points, halo_scheme=hs))
473473

474474
key0 = lambda i: i in prefix[:-1] or i in hs.loc_indices # noqa: B023
475-
key1 = lambda i: i not in hs.distributed_defined # noqa: B023
475+
key1 = lambda i: not i._defines & set(hs.distributed_defined) # noqa: B023
476476
key = lambda i: key0(i) and key1(i) # noqa: B023
477477
ispace = c.ispace.project(key)
478478

0 commit comments

Comments
 (0)