diff --git a/grudge/discretization.py b/grudge/discretization.py index 2a272af10a808d5ebf005e11108df87399bd550a..47b425e632287ea702be0026b3646be484ff56da 100644 --- a/grudge/discretization.py +++ b/grudge/discretization.py @@ -216,6 +216,14 @@ class DiscretizationCollection: return boundary_connections def get_distributed_boundary_swap_connection(self, dd): + warn("`DiscretizationCollection.get_distributed_boundary_swap_connection` " + "is deprecated and will go away in 2022. Use " + "`DiscretizationCollection.distributed_boundary_swap_connection` " + "instead.", + DeprecationWarning, stacklevel=2) + return self.distributed_boundary_swap_connection(dd) + + def distributed_boundary_swap_connection(self, dd): """Provides a mapping from the base volume discretization to the exterior boundary restriction on a parallel boundary partition described by *dd*. This connection is used to diff --git a/grudge/execution.py b/grudge/execution.py index eeba079d521e108472dba0dd68b82da6725e0473..73b5e894839a58c9275781410353f034182fc132 100644 --- a/grudge/execution.py +++ b/grudge/execution.py @@ -318,7 +318,7 @@ class ExecutionMapper(mappers.Evaluator, def map_opposite_partition_face_swap(self, op, field_expr): assert op.dd_in == op.dd_out - bdry_conn = self.dcoll.get_distributed_boundary_swap_connection(op.dd_in) + bdry_conn = self.dcoll.distributed_boundary_swap_connection(op.dd_in) remote_bdry_vec = self.rec(field_expr) # swapped by RankDataSwapAssign return bdry_conn(remote_bdry_vec) diff --git a/grudge/models/advection.py b/grudge/models/advection.py index 98ff40ac49ee086ea966ee37bd83a1a68937a408..37ed429be37250f102812127c5eab28a7a495b91 100644 --- a/grudge/models/advection.py +++ b/grudge/models/advection.py @@ -292,7 +292,7 @@ def v_dot_n_tpair(actx, dcoll, velocity, trace_dd): if trace_dd.domain_tag is FACE_RESTR_INTERIOR: e = dcoll.opposite_face_connection()(i) elif isinstance(trace_dd.domain_tag, DTAG_BOUNDARY): - e = dcoll.get_distributed_boundary_swap_connection(trace_dd)(i) + e = dcoll.distributed_boundary_swap_connection(trace_dd)(i) else: raise ValueError("Unrecognized domain tag: %s" % trace_dd.domain_tag) diff --git a/grudge/trace_pair.py b/grudge/trace_pair.py index 64ea21094252707fe3350da1ca1b1dcfccaf5fe9..ad2e9c815f6b38d48f7dabf95314bdfceda553fc 100644 --- a/grudge/trace_pair.py +++ b/grudge/trace_pair.py @@ -298,7 +298,7 @@ class _RankBoundaryCommunication: actx.from_numpy(self.remote_data_host) ) - bdry_conn = self.dcoll.get_distributed_boundary_swap_connection( + bdry_conn = self.dcoll.distributed_boundary_swap_connection( dof_desc.as_dofdesc(dof_desc.DTAG_BOUNDARY(self.remote_btag)) ) swapped_remote_dof_array = bdry_conn(remote_dof_array)