@@ -862,11 +862,20 @@ def cross_rank_trace_pairs(
862862
863863 local_bdry_data = project (dcoll , volume_dd , bdry_dd , ary )
864864
865- remote_bdry_data_template = _replace_dof_arrays (
866- local_bdry_data ,
865+ from arraycontext import tag_axes
866+ from meshmode .transform_metadata import (
867+ DiscretizationElementAxisTag ,
868+ DiscretizationDOFAxisTag )
869+ remote_bdry_zeros = tag_axes (
870+ actx , {
871+ 0 : DiscretizationElementAxisTag (),
872+ 1 : DiscretizationDOFAxisTag ()},
867873 dcoll ._inter_part_connections [
868874 remote_part_id , local_part_id ].from_discr .zeros (actx ))
869875
876+ remote_bdry_data_template = _replace_dof_arrays (
877+ local_bdry_data , remote_bdry_zeros )
878+
870879 rank_bdry_communicators .append (
871880 rbc_class (actx , dcoll ,
872881 local_part_id = local_part_id ,
@@ -980,16 +989,20 @@ def get_remote_connected_parts(local_vol_dd, remote_vol_dd):
980989 self_bdry_data = project (
981990 dcoll , self_vol_dd , self_bdry_dd , self_vol_data )
982991
983- other_bdry_template_dd = other_vol_dd .trace (
984- BTAG_PARTITION (self_part_id ))
985- other_bdry_container_template = project (
986- dcoll , other_vol_dd , other_bdry_template_dd ,
987- other_vol_data )
988- other_bdry_data_template = _replace_dof_arrays (
989- other_bdry_container_template ,
992+ from arraycontext import tag_axes
993+ from meshmode .transform_metadata import (
994+ DiscretizationElementAxisTag ,
995+ DiscretizationDOFAxisTag )
996+ other_bdry_zeros = tag_axes (
997+ actx , {
998+ 0 : DiscretizationElementAxisTag (),
999+ 1 : DiscretizationDOFAxisTag ()},
9901000 dcoll ._inter_part_connections [
9911001 other_part_id , self_part_id ].from_discr .zeros (actx ))
9921002
1003+ other_bdry_data_template = _replace_dof_arrays (
1004+ other_vol_data , other_bdry_zeros )
1005+
9931006 rbcs .append (
9941007 rbc_class (actx , dcoll ,
9951008 local_part_id = self_part_id ,
0 commit comments