Skip to content

Commit 3afe452

Browse files
committed
Fix broken Stokes test (#4469)
1 parent 1aabe67 commit 3afe452

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/firedrake/macro/test_macro_solve.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ def test_stokes(mh, variant, mixed_element):
144144
Z = V * Q
145145

146146
a, L = stokes_mms(Z, as_vector(zexact))
147-
bcs = DirichletBC(Z[0], as_vector(zexact[:dim]), "on_boundary")
147+
bcs = DirichletBC(Z.sub(0), as_vector(zexact[:dim]), "on_boundary")
148148

149149
zh = Function(Z)
150150
nullspace = MixedVectorSpaceBasis(
151151
Z,
152152
[Z.sub(0), VectorSpaceBasis(constant=True, comm=COMM_WORLD)]
153153
)
154-
solve(a == L, zh, bcs=bcs, nullspace=nullspace)
154+
solve(a == L, zh, bcs=bcs, nullspace=nullspace, solver_parameters={"ksp_type": "preonly", "pc_type": "cholesky", "pc_factor_mat_solver_type": "mumps"})
155155

156156
uh, ph = zh.subfunctions
157157
u_err.append(errornorm(as_vector(uexact), uh))

0 commit comments

Comments
 (0)