Skip to content

Commit

Permalink
Re-enable this snippet with fix - testing multivols
Browse files Browse the repository at this point in the history
  • Loading branch information
MTCam committed Dec 12, 2024
1 parent c9eb887 commit da25b8d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions grudge/trace_pair.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,12 +916,15 @@ def cross_rank_trace_pairs(
# --------

# Disabling this bit due to above error
# if isinstance(ary, Number):
# # NOTE: Assumed that the same number is passed on every rank
# return [TracePair(
# volume_dd.trace(BTAG_PARTITION(remote_rank)),
# interior=ary, exterior=ary)
# for remote_rank in connected_parts(dcoll, volume_dd=volume_dd)]
if isinstance(ary, Number):
# NOTE: Assumed that the same number is passed on every rank
voltag = volume_dd.domain_tag.tag
return [TracePair(
volume_dd.trace(BTAG_PARTITION(remote_rank)),
interior=ary, exterior=ary)
for remote_rank in connected_parts(dcoll,
self_volume_tag=voltag,
other_volume_tag=voltag)]

rank = dcoll.mpi_communicator.Get_rank()

Expand Down

0 comments on commit da25b8d

Please sign in to comment.