Skip to content

Commit f5bb736

Browse files
committed
Remove long-deprecated special-casing of meshmode DOFArrays
1 parent 7b25c6d commit f5bb736

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

arraycontext/fake_numpy.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -234,22 +234,6 @@ def norm(self, ary, ord=None):
234234

235235
actx = self._array_context
236236

237-
try:
238-
from meshmode.dof_array import DOFArray, flat_norm
239-
except ImportError:
240-
pass
241-
else:
242-
if isinstance(ary, DOFArray):
243-
from warnings import warn
244-
warn("Taking an actx.np.linalg.norm of a DOFArray is deprecated. "
245-
"(DOFArrays use 2D arrays internally, and "
246-
"actx.np.linalg.norm should compute matrix norms of those.) "
247-
"This will stop working in 2022. "
248-
"Use meshmode.dof_array.flat_norm instead.",
249-
DeprecationWarning, stacklevel=2)
250-
251-
return flat_norm(ary, ord=ord)
252-
253237
try:
254238
iterable = serialize_container(ary)
255239
except NotAnArrayContainerError:

0 commit comments

Comments
 (0)