From 875b725e174eaa79282d5304562300f0b46a3b11 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Fri, 25 Aug 2017 14:28:00 +0200 Subject: [PATCH] Fix small glitches in tests --- python/dune/perftool/pdelab/basis.py | 1 - test/blockstructured/nonlinear/nonlinear.mini | 1 - test/blockstructured/nonlinear/nonlinear.ufl | 1 + test/stokes/stokes_sym.mini | 2 +- 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/python/dune/perftool/pdelab/basis.py b/python/dune/perftool/pdelab/basis.py index af3c7813..15bc54d5 100644 --- a/python/dune/perftool/pdelab/basis.py +++ b/python/dune/perftool/pdelab/basis.py @@ -168,7 +168,6 @@ def evaluate_coefficient(visitor, element, name, container, restriction, index): basis = visitor.interface.pymbolic_basis(sub_element, restriction, 0, context='trial') basisindex, = get_pymbolic_indices(basis) - if get_option("blockstructured"): from dune.perftool.blockstructured.argument import pymbolic_coefficient coeff = pymbolic_coefficient(container, lfs, element, basisindex) diff --git a/test/blockstructured/nonlinear/nonlinear.mini b/test/blockstructured/nonlinear/nonlinear.mini index c0b936fd..18b3e9ad 100644 --- a/test/blockstructured/nonlinear/nonlinear.mini +++ b/test/blockstructured/nonlinear/nonlinear.mini @@ -9,7 +9,6 @@ reference = nonlinear_ref extension = vtu [formcompiler] -exact_solution_expression = g compare_l2errorsquared = 6e-4 blockstructured = 1 number_of_blocks = 5 \ No newline at end of file diff --git a/test/blockstructured/nonlinear/nonlinear.ufl b/test/blockstructured/nonlinear/nonlinear.ufl index d636ea9b..6187bbeb 100644 --- a/test/blockstructured/nonlinear/nonlinear.ufl +++ b/test/blockstructured/nonlinear/nonlinear.ufl @@ -11,4 +11,5 @@ v = TestFunction(V) forms = [(inner(grad(u), grad(v)) + u*u*v - f*v)*dx] dirichlet_expression = g +exact_solution = g is_dirichlet = 1 diff --git a/test/stokes/stokes_sym.mini b/test/stokes/stokes_sym.mini index 74bcae0d..26cc9146 100644 --- a/test/stokes/stokes_sym.mini +++ b/test/stokes/stokes_sym.mini @@ -14,4 +14,4 @@ extension = vtu [formcompiler] numerical_jacobian = 0, 1 | expand num -compare_l2errorsquared = 1e-11 +compare_l2errorsquared = 1e-10 -- GitLab