Skip to content

Commit

Permalink
Compare quadrature degree against embedded_superdegree
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Oct 13, 2024
1 parent 69f0e60 commit 940d681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsfc/kernel_interface/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def set_quad_rule(params, cell, integral_type, functions):
quadrature_degree = params["quadrature_degree"]
except KeyError:
quadrature_degree = params["estimated_polynomial_degree"]
function_degrees = [f.ufl_function_space().ufl_element().degree()
function_degrees = [f.ufl_function_space().ufl_element().embedded_superdegree
for f in functions]
if all((asarray(quadrature_degree) > 10 * asarray(degree)).all()
for degree in function_degrees):
Expand Down

0 comments on commit 940d681

Please sign in to comment.