Skip to content
Snippets Groups Projects
Commit 2520f602 authored by Thomas Gibson's avatar Thomas Gibson
Browse files

Don't delete dictionary entry corresponding to QTAG_NONE if user passes it in

parent ee187c9d
No related branches found
No related tags found
No related merge requests found
......@@ -90,14 +90,12 @@ class DiscretizationCollection:
PolynomialWarpAndBlendGroupFactory(order=order)
# FIXME: QTAG_NONE hunting
if QTAG_NONE in quad_tag_to_group_factory.keys():
if QTAG_NONE in quad_tag_to_group_factory:
warn("`DOFDesc.QTAG_NONE` is deprecated and will be dropped "
"in version 2022.x. Use `DOFDesc.DISCR_TAG_BASE` instead.",
DeprecationWarning, stacklevel=2)
# Is this too aggressive/invasive?
quad_tag_to_group_factory[DISCR_TAG_BASE] = \
quad_tag_to_group_factory[QTAG_NONE]
del quad_tag_to_group_factory[QTAG_NONE]
# Modal discr should always comes from the base discretization
quad_tag_to_group_factory[DISCR_TAG_MODAL] = \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment