From 940d681ff08bf185dde01b8e8e346f422d36aee6 Mon Sep 17 00:00:00 2001 From: Pablo Brubeck Date: Sun, 13 Oct 2024 13:50:07 +0100 Subject: [PATCH] Compare quadrature degree against embedded_superdegree --- tsfc/kernel_interface/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsfc/kernel_interface/common.py b/tsfc/kernel_interface/common.py index 18fd363f..674e3570 100644 --- a/tsfc/kernel_interface/common.py +++ b/tsfc/kernel_interface/common.py @@ -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):