From fb28d95f01c21d26d81a06a45b5131b9ce974113 Mon Sep 17 00:00:00 2001 From: "David A. Ham" Date: Wed, 30 Oct 2024 16:49:16 +0000 Subject: [PATCH] Use conventional error definition. --- tests/regression/test_integral_hex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regression/test_integral_hex.py b/tests/regression/test_integral_hex.py index 1bda81ef90..fe22931b92 100644 --- a/tests/regression/test_integral_hex.py +++ b/tests/regression/test_integral_hex.py @@ -51,5 +51,5 @@ def test_integral_hex_interior_facet_solve(mesh_from_file): bc = DirichletBC(V, f, "on_boundary") sol = Function(V) solve(a == L, sol, bcs=[bc]) - err = assemble((sol - f)**2 * dx) - assert err < 1.e-28 + err = assemble((sol - f)**2 * dx)**0.5 + assert err < 1.e-14