Skip to content

Commit b1b6fb9

Browse files
committed
touch up macro elem tests
1 parent 84125b0 commit b1b6fb9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/macro/test_macro_solve.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ def test_stokes(mh, variant, mixed_element, convergence_test):
147147

148148
zh = Function(Z)
149149
nullspace = MixedVectorSpaceBasis(Z, [Z.sub(0), VectorSpaceBasis(constant=True)])
150-
solve(a == L, zh, bcs=bcs, nullspace=nullspace, solver_parameters={"ksp_type": "gmres"})
150+
solve(a == L, zh, bcs=bcs, nullspace=nullspace, solver_parameters={"ksp_type": "gmres",
151+
"mat_mumps_icntl_24": 1})
151152
uh, ph = zh.subfunctions
152153
u_err.append(errornorm(as_vector(zexact[:dim]), uh))
153154
p_err.append(errornormL2_0(zexact[-1], ph))
@@ -174,6 +175,6 @@ def test_div_free(mh, variant, mixed_element, div_test):
174175
sub = tuple(range(1, 2*dim+1))
175176
bcs = [DirichletBC(Z[0], f, sub)]
176177
zh = Function(Z)
177-
solve(a == L, zh, bcs=bcs)
178+
solve(a == L, zh, bcs=bcs, solver_parameters={"mat_mumps_icntl_24": 1})
178179
uh, _ = zh.subfunctions
179180
assert div_test(uh)

0 commit comments

Comments
 (0)