From 79fe6a7264aa185f1ab5a7603d116cf95249456a Mon Sep 17 00:00:00 2001 From: Ryker Fish Date: Thu, 9 May 2024 12:47:42 -0600 Subject: [PATCH] now testing if mobility is 0 on the bottom wall --- tests/test_wall_mobility.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_wall_mobility.py b/tests/test_wall_mobility.py index 1a55c35..67fb6c5 100644 --- a/tests/test_wall_mobility.py +++ b/tests/test_wall_mobility.py @@ -62,6 +62,8 @@ def test_self_mobility(Solver, periodicity, ref_file): interp_diags = [np.diag(matrix) for matrix in Minterp] ref_diags = [np.diag(matrix)[0:3] for matrix in refM] # only take diagonal elements from forces + assert np.all(np.diag(allM[0]) == [0,0,0]), "Self mobility is not zero on the wall at z=0" + assert np.allclose(interp_diags, ref_diags, atol=3e-2), "Self mobility does not match reference" if __name__ == "__main__":