Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discontinuous Boundary Quadrature elements #3918

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
--install defcon \
--install gadopt \
--install asQ \
--package-branch fiat pbrubeck/boundary-quadrature \
|| (cat firedrake-install.log && /bin/false)
- name: Install test dependencies
run: |
Expand Down
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
Loading