Skip to content

Commit

Permalink
#3959 reduce tolerances to fix macos-14 unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brosaplanella committed May 21, 2024
1 parent 786385c commit 6b9f378
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def test_indefinite_integral(self):
phi_exact = np.ones((submesh.npts, 1))
phi_approx = int_grad_phi_disc.evaluate(None, phi_exact)
phi_approx += 1 # add constant of integration
np.testing.assert_array_equal(phi_exact, phi_approx)
np.testing.assert_array_almost_equal(phi_exact, phi_approx)
self.assertEqual(left_boundary_value_disc.evaluate(y=phi_exact), 0)
# linear case
phi_exact = submesh.nodes[:, np.newaxis]
Expand Down Expand Up @@ -488,7 +488,7 @@ def test_backward_indefinite_integral(self):
phi_exact = np.ones((submesh.npts, 1))
phi_approx = int_grad_phi_disc.evaluate(None, phi_exact)
phi_approx += 1 # add constant of integration
np.testing.assert_array_equal(phi_exact, phi_approx)
np.testing.assert_array_almost_equal(phi_exact, phi_approx)
self.assertEqual(right_boundary_value_disc.evaluate(y=phi_exact), 0)

# linear case
Expand Down

0 comments on commit 6b9f378

Please sign in to comment.