Skip to content

Commit

Permalink
test: lb_interpolation: increase tolerance close to boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
RudolfWeeber committed Mar 26, 2020
1 parent 5fd710d commit 210b513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/python/lb_interpolation.py
Expand Up @@ -78,7 +78,7 @@ def test_interpolated_velocity(self):
np.testing.assert_allclose(
np.copy(self.lbf.get_interpolated_velocity(
[self.system.box_l[0] - AGRID / 2, 0, 0])),
np.array([0, 0, V_BOUNDARY]))
np.array([0, 0, V_BOUNDARY]), atol=1E-4)

# Check interpolated velocity involving boundary and neighboring node
# The boundary node index is lbf.shape[0]-1, so -2 refers to the
Expand All @@ -90,7 +90,7 @@ def test_interpolated_velocity(self):
np.testing.assert_allclose(
np.copy(self.lbf.get_interpolated_velocity(
[self.system.box_l[0] - AGRID, 0, 0])),
0.5 * (np.array([0, 0, V_BOUNDARY]) + node_next_to_boundary.velocity))
0.5 * (np.array([0, 0, V_BOUNDARY]) + node_next_to_boundary.velocity), atol=1E-4)

# Bulk
for pos in itertools.product(
Expand Down

0 comments on commit 210b513

Please sign in to comment.