Skip to content

Commit

Permalink
Drop deprecated 'tag' argument to cross_rank_trace_pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Dec 2, 2024
1 parent ce6da6b commit 96d5e06
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions grudge/trace_pair.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@ def finish(self):

def cross_rank_trace_pairs(
dcoll: DiscretizationCollection, ary: ArrayOrContainer,
tag: Hashable = None,
*, comm_tag: Hashable = None,
volume_dd: DOFDesc | None = None) -> list[TracePair]:
r"""Get a :class:`list` of *ary* trace pairs for each partition boundary.
Expand Down Expand Up @@ -598,16 +597,6 @@ def cross_rank_trace_pairs(
if volume_dd.discretization_tag != DISCR_TAG_BASE:
raise TypeError(f"expected a base-discretized DOFDesc, got '{volume_dd}'")

if tag is not None:
warn("Specifying 'tag' is deprecated and will stop working in July of 2022. "
"Specify 'comm_tag' (keyword-only) instead.",
DeprecationWarning, stacklevel=2)
if comm_tag is not None:
raise TypeError("may only specify one of 'tag' and 'comm_tag'")
else:
comm_tag = tag
del tag

# }}}

if isinstance(ary, Number):
Expand Down

0 comments on commit 96d5e06

Please sign in to comment.