Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions finat/ufl/elementlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# Modified by Matthew Scroggs, 2023
# Modified by Pablo Brubeck, 2024

import warnings

from numpy import asarray

from ufl.cell import Cell, TensorProductCell
Expand Down Expand Up @@ -429,13 +427,8 @@ def canonical_element_description(family, cell, order, form_degree):
if family == "Lagrange":
family = "Q"
elif family == "Discontinuous Lagrange":
if order >= 1:
warnings.warn("Discontinuous Lagrange element requested on %s, creating DQ element." % cell.cellname)
family = "DQ"
elif family == "Discontinuous Lagrange L2":
if order >= 1:
warnings.warn(f"Discontinuous Lagrange L2 element requested on {cell.cellname}, "
"creating DQ L2 element.")
family = "DQ L2"

# Validate cellname if a valid cell is specified
Expand Down
Loading