Skip to content

Commit 4c7292e

Browse files
committed
fix bugs
1 parent 0071928 commit 4c7292e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

grudge/trace_pair.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
ArrayContext,
6060
with_container_arithmetic,
6161
dataclass_array_container,
62-
get_container_context_recursively,
62+
get_container_context_recursively_opt,
6363
to_numpy,
6464
from_numpy)
6565
from arraycontext.container import ArrayOrContainerT
@@ -259,7 +259,7 @@ def bv_trace_pair(
259259
DeprecationWarning, stacklevel=2)
260260
dd = dof_desc.as_dofdesc(dd)
261261
return bdry_trace_pair(
262-
dcoll, dd, project(dcoll, "vol", dd, interior), exterior)
262+
dcoll, dd, project(dcoll, dd.domain_tag.volume_tag, dd, interior), exterior)
263263

264264
# }}}
265265

@@ -471,7 +471,7 @@ def inter_volume_trace_pairs(dcoll: DiscretizationCollection,
471471
result[directional_vol_dd_pair] = [tpair]
472472

473473
for directional_vol_dd_pair, tpairs in cross_rank_tpairs.items():
474-
result.setdefault(directional_vol_dd_pair, []).append(tpairs)
474+
result.setdefault(directional_vol_dd_pair, []).extend(tpairs)
475475

476476
return result
477477

@@ -839,7 +839,7 @@ def cross_rank_trace_pairs(
839839
assert len(remote_part_ids) == len(
840840
{dcoll._part_id_helper.get_mpi_rank(part_id) for part_id in remote_part_ids})
841841

842-
actx = get_container_context_recursively(ary)
842+
actx = get_container_context_recursively_opt(ary)
843843

844844
if actx is None:
845845
# NOTE: Assumes that the same number is passed on every rank
@@ -925,7 +925,7 @@ def cross_rank_inter_volume_trace_pairs(
925925

926926
for vol_data_pair in pairwise_volume_data.values():
927927
for vol_data in vol_data_pair:
928-
actx = get_container_context_recursively(vol_data)
928+
actx = get_container_context_recursively_opt(vol_data)
929929
if actx is not None:
930930
break
931931
if actx is not None:

0 commit comments

Comments
 (0)