Skip to content

Commit bed4842

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

3 files changed

Lines changed: 5 additions & 5 deletions

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

examples/seismic/self_adjoint/sa_03_iso_correctness.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,9 @@
578578
"output_type": "stream",
579579
"text": [
580580
"Operator `IsoFwdOperator` ran in 0.04 s\n",
581-
"No source type defined, returning uninitiallized (zero) source\n",
581+
"No source type defined, returning uninitialized (zero) source\n",
582582
"Operator `IsoAdjOperator` ran in 0.03 s\n",
583-
"No source type defined, returning uninitiallized (zero) source\n",
583+
"No source type defined, returning uninitialized (zero) source\n",
584584
"Operator `IsoAdjOperator` ran in 0.03 s\n"
585585
]
586586
},
@@ -639,7 +639,7 @@
639639
"output_type": "stream",
640640
"text": [
641641
"Operator `IsoFwdOperator` ran in 0.03 s\n",
642-
"No source type defined, returning uninitiallized (zero) source\n",
642+
"No source type defined, returning uninitialized (zero) source\n",
643643
"Operator `IsoAdjOperator` ran in 0.03 s\n"
644644
]
645645
},

examples/seismic/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def src(self):
194194
def new_src(self, name='src', src_type='self', coordinates=None):
195195
coords = coordinates or self.src_positions
196196
if self.src_type is None or src_type is None:
197-
warning("No source type defined, returning uninitiallized (zero) source")
197+
warning("No source type defined, returning uninitialized (zero) source")
198198
src = PointSource(name=name, grid=self.grid,
199199
time_range=self.time_axis, npoint=self.nsrc,
200200
coordinates=coords,

0 commit comments

Comments
 (0)