From de4d7b75f5fe452dd0629a2a28cd363b1ce32f52 Mon Sep 17 00:00:00 2001 From: Pablo Brubeck Date: Wed, 11 Dec 2024 13:42:55 +0000 Subject: [PATCH] Boundary Quadrature element --- tsfc/finatinterface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tsfc/finatinterface.py b/tsfc/finatinterface.py index b7e3d0ad72..9e867cff6c 100644 --- a/tsfc/finatinterface.py +++ b/tsfc/finatinterface.py @@ -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