Skip to content

Commit e1b2da7

Browse files
committed
don't try to create trace pair if there's no adjacency
1 parent 4c7292e commit e1b2da7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

grudge/trace_pair.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,14 @@ def local_inter_volume_trace_pairs(
390390
result: Mapping[Tuple[DOFDesc, DOFDesc], TracePair] = {}
391391

392392
for vol_dd_pair, vol_data_pair in pairwise_volume_data.items():
393+
from meshmode.mesh import mesh_has_boundary
394+
if not mesh_has_boundary(
395+
dcoll.discr_from_dd(vol_dd_pair[0]).mesh,
396+
BTAG_PARTITION(
397+
dcoll._part_id_helper.make(
398+
rank, vol_dd_pair[1].domain_tag.tag))):
399+
continue
400+
393401
directional_vol_dd_pairs = [
394402
(vol_dd_pair[1], vol_dd_pair[0]),
395403
(vol_dd_pair[0], vol_dd_pair[1])]

0 commit comments

Comments
 (0)