Skip to content

Commit

Permalink
touch up macro elem tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ksagiyam committed May 7, 2024
1 parent 954c102 commit 824f2a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/macro/test_macro_solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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)

0 comments on commit 824f2a5

Please sign in to comment.