Skip to content

Commit f763dc9

Browse files
committed
don't try to create trace pair if there's no adjacency
1 parent 5b36833 commit f763dc9

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
@@ -395,6 +395,14 @@ def local_inter_volume_trace_pairs(
395395
result: Mapping[Tuple[DOFDesc, DOFDesc], TracePair] = {}
396396

397397
for vol_dd_pair, vol_data_pair in pairwise_volume_data.items():
398+
from meshmode.mesh import mesh_has_boundary
399+
if not mesh_has_boundary(
400+
dcoll.discr_from_dd(vol_dd_pair[0]).mesh,
401+
BTAG_PARTITION(
402+
dcoll._part_id_helper.make(
403+
rank, vol_dd_pair[1].domain_tag.tag))):
404+
continue
405+
398406
directional_vol_dd_pairs = [
399407
(vol_dd_pair[1], vol_dd_pair[0]),
400408
(vol_dd_pair[0], vol_dd_pair[1])]

0 commit comments

Comments
 (0)