Skip to content

Commit

Permalink
Increase tolerance in some tests (#2976)
Browse files Browse the repository at this point in the history
* increase tolerance

* improve tolerance
  • Loading branch information
IgorBaratta authored Jan 9, 2024
1 parent 427a655 commit 75ba784
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/test/unit/fem/test_fem_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def run_scalar_test(mesh, V, degree):
M = (u_exact - uh)**2 * dx
M = form(M)
error = mesh.comm.allreduce(assemble_scalar(M), op=MPI.SUM)
assert np.abs(error) < 1.0e-12
assert np.abs(error) < 1.0e-9

solver.destroy()
A.destroy()
Expand Down Expand Up @@ -123,7 +123,7 @@ def run_vector_test(mesh, V, degree):
M = form(M)

error = mesh.comm.allreduce(assemble_scalar(M), op=MPI.SUM)
assert np.abs(error) < 1.0e-14
assert np.abs(error) < 1.0e-9

solver.destroy()
A.destroy()
Expand Down Expand Up @@ -197,7 +197,7 @@ def run_dg_test(mesh, V, degree):
M = form(M)

error = mesh.comm.allreduce(assemble_scalar(M), op=MPI.SUM)
assert np.abs(error) < 1.0e-14
assert np.abs(error) < 1.0e-9

solver.destroy()
A.destroy()
Expand Down

0 comments on commit 75ba784

Please sign in to comment.