Skip to content
Snippets Groups Projects
Commit 5ed9dd16 authored by René Heß's avatar René Heß
Browse files

Use anisotropic quadrature order in test and small improvements

parent 95456dcb
No related branches found
No related tags found
No related merge requests found
...@@ -208,7 +208,7 @@ def quadrature_points_per_direction(): ...@@ -208,7 +208,7 @@ def quadrature_points_per_direction():
q = (q,) * world_dimension() q = (q,) * world_dimension()
# Quadrature points in per direction # Quadrature points in per direction
nb_qp = tuple([(lambda x: x // 2 + 1)(order) for order in q]) nb_qp = tuple(order // 2 +1 for order in q)
return nb_qp return nb_qp
...@@ -229,7 +229,7 @@ def local_quadrature_points_per_direction(): ...@@ -229,7 +229,7 @@ def local_quadrature_points_per_direction():
def polynomial_degree(): def polynomial_degree():
form = get_global_context_value("formdata").preprocessed_form form = get_global_context_value("formdata").preprocessed_form
degree = form.coefficients()[0].ufl_element()._degree degree = form.coefficients()[0].ufl_element().degree()
if isinstance(degree, int): if isinstance(degree, int):
degree = (degree,) * world_dimension() degree = (degree,) * world_dimension()
return degree return degree
......
...@@ -18,7 +18,7 @@ numerical_jacobian = 1, 0 | expand num ...@@ -18,7 +18,7 @@ numerical_jacobian = 1, 0 | expand num
compare_l2errorsquared = 4e-5, 4e-9 | expand deg compare_l2errorsquared = 4e-5, 4e-9 | expand deg
sumfact = 1 sumfact = 1
vectorize_grads = 1, 0 | expand grad vectorize_grads = 1, 0 | expand grad
# quadrature_order = 2, 4 quadrature_order = 2, 4
[formcompiler.ufl_variants] [formcompiler.ufl_variants]
degree = 1, 2 | expand deg degree = 1, 2 | expand deg
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment