Skip to content

Commit

Permalink
use new basix functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Aug 14, 2023
1 parent ad60c6b commit 5146497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ffcx/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ def _analyze_form(form: ufl.form.Form, options: typing.Dict) -> ufl.algorithms.f
custom_q = None
for e in form_data.unique_elements:
e = convert_element(e)
if isinstance(e, basix.ufl._QuadratureElement):
if e.has_custom_quadrature:
if custom_q is None:
custom_q = e._points, e._weights
custom_q = e.custom_quadrature()
else:
assert np.allclose(e._points, custom_q[0])
assert np.allclose(e._weights, custom_q[1])
Expand Down

0 comments on commit 5146497

Please sign in to comment.