Skip to content

Commit

Permalink
#3959 relax some more tolerances
Browse files Browse the repository at this point in the history
  • Loading branch information
brosaplanella committed May 21, 2024
1 parent fbfbdeb commit 71b5f43
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,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
Expand Down Expand Up @@ -440,7 +440,7 @@ def test_indefinite_integral(self):
c_exact = np.ones((submesh.npts, 1))
c_approx = c_integral_disc.evaluate(None, c_exact)
c_approx += 1 # add constant of integration
np.testing.assert_array_equal(c_exact, c_approx)
np.testing.assert_array_almost_equal(c_exact, c_approx)
self.assertEqual(left_boundary_value_disc.evaluate(y=c_exact), 0)

# linear case
Expand Down Expand Up @@ -561,7 +561,7 @@ def test_indefinite_integral_on_nodes(self):
phi_exact = np.ones((submesh.npts, 1))
int_phi_exact = submesh.edges
int_phi_approx = int_phi_disc.evaluate(None, phi_exact).flatten()
np.testing.assert_array_equal(int_phi_exact, int_phi_approx)
np.testing.assert_array_almost_equal(int_phi_exact, int_phi_approx)
# linear case
phi_exact = submesh.nodes
int_phi_exact = submesh.edges**2 / 2
Expand Down

0 comments on commit 71b5f43

Please sign in to comment.