Skip to content

Commit

Permalink
Boundary Quadrature element
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Dec 11, 2024
1 parent 6672f33 commit de4d7b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tsfc/finatinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ def convert(element, **kwargs):
@convert.register(finat.ufl.FiniteElement)
def convert_finiteelement(element, **kwargs):
cell = as_fiat_cell(element.cell)
if element.family() == "Quadrature":
if element.family() in ["Quadrature", "Boundary Quadrature"]:
degree = element.degree()
scheme = element.quadrature_scheme()
if degree is None or scheme is None:
raise ValueError("Quadrature scheme and degree must be specified!")

return finat.make_quadrature_element(cell, degree, scheme), set()
trace = element.family() == "Boundary Quadrature"
return finat.make_quadrature_element(cell, degree, scheme, trace), set()
lmbda = supported_elements[element.family()]
if element.family() == "Real" and element.cell.cellname() in {"quadrilateral", "hexahedron"}:
lmbda = None
Expand Down

0 comments on commit de4d7b7

Please sign in to comment.