From b6eb98197de07b318f1d0512042514987b844b1b Mon Sep 17 00:00:00 2001 From: Ross Williams Date: Wed, 21 Aug 2024 11:07:03 +0100 Subject: [PATCH] Fixed random_F to be be the same for every test run --- Tests/test_arbitrary_MatModel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_arbitrary_MatModel.py b/Tests/test_arbitrary_MatModel.py index a0328c4..25ea672 100644 --- a/Tests/test_arbitrary_MatModel.py +++ b/Tests/test_arbitrary_MatModel.py @@ -40,7 +40,7 @@ def test_combined_arbitrary_MatModel(): assert (mat.stress(random_F)-mat2.stress(random_F)) == pytest.approx(np.zeros((3,3))) # Define a random deformation gradient -random_F = np.random.rand(3, 3) +random_F = np.array([[0.85862107, 0.91032637, 0.80119846], [0.16268142, 0.8596134, 0.17696991], [0.93450122, 0.30132757, 0.55042838]]) test_arbitrary_MatModel_I1() test_arbitrary_MatModel_I2()