From 824f2a5ad9fa1b504b42c930d98cc9302ba83869 Mon Sep 17 00:00:00 2001 From: ksagiyam Date: Fri, 3 May 2024 15:12:53 +0100 Subject: [PATCH] touch up macro elem tests --- tests/macro/test_macro_solve.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/macro/test_macro_solve.py b/tests/macro/test_macro_solve.py index 06e2a170c2..77e89590ae 100644 --- a/tests/macro/test_macro_solve.py +++ b/tests/macro/test_macro_solve.py @@ -147,7 +147,8 @@ def test_stokes(mh, variant, mixed_element, convergence_test): zh = Function(Z) nullspace = MixedVectorSpaceBasis(Z, [Z.sub(0), VectorSpaceBasis(constant=True)]) - solve(a == L, zh, bcs=bcs, nullspace=nullspace, solver_parameters={"ksp_type": "gmres"}) + solve(a == L, zh, bcs=bcs, nullspace=nullspace, solver_parameters={"ksp_type": "gmres", + "mat_mumps_icntl_24": 1}) uh, ph = zh.subfunctions u_err.append(errornorm(as_vector(zexact[:dim]), uh)) p_err.append(errornormL2_0(zexact[-1], ph)) @@ -174,6 +175,6 @@ def test_div_free(mh, variant, mixed_element, div_test): sub = tuple(range(1, 2*dim+1)) bcs = [DirichletBC(Z[0], f, sub)] zh = Function(Z) - solve(a == L, zh, bcs=bcs) + solve(a == L, zh, bcs=bcs, solver_parameters={"mat_mumps_icntl_24": 1}) uh, _ = zh.subfunctions assert div_test(uh)