Skip to content

Commit

Permalink
increase tolerance in test_singular_poisson
Browse files Browse the repository at this point in the history
conda builds seem to _just_ miss the 8e3 threshold on linux
  • Loading branch information
minrk committed Oct 4, 2024
1 parent 423db62 commit f0b0b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_real_functionspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def test_singular_poisson(tensor, degree, dtype):
error = dolfinx.fem.form(ufl.inner(u_ex - uh, u_ex - uh) * dx, dtype=dtype)

e_local = dolfinx.fem.assemble_scalar(error)
tol = 8e3 * np.finfo(dtype).eps
tol = 1e4 * np.finfo(dtype).eps
e_global = np.sqrt(mesh.comm.allreduce(e_local, op=MPI.SUM))
assert np.isclose(e_global, 0, atol=tol)

Expand Down

0 comments on commit f0b0b75

Please sign in to comment.