tFix calls to getWallNormalStress during testing - Granular.jl - Julia package … | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 520512a32bdaad768cc593e0c937b43dccd89083 | |
parent 713455f462ecb5e74b9b719f66a72d13fc60b16b | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 9 May 2018 22:17:20 -0400 | |
Fix calls to getWallNormalStress during testing | |
Diffstat: | |
M test/wall.jl | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/test/wall.jl b/test/wall.jl | |
t@@ -51,10 +51,10 @@ Granular.addWallLinearFrictionless!(sim, [0., 1.], 1., ver… | |
@test Granular.getWallSurfaceArea(sim, 2) ≈ 10.0*2.0 | |
sim.walls[1].normal_stress = 1.0 | |
-@test Granular.getWallNormalStress(sim, 1, stress_type="defined") ≈ 1.0 | |
+@test Granular.getWallNormalStress(sim, wall_index=1, stress_type="defined") �… | |
sim.walls[1].force = 1.0 | |
-@test Granular.getWallNormalStress(sim, 1, stress_type="effective") ≈ 1.0/(2… | |
-@test_throws ErrorException Granular.getWallNormalStress(sim, 1, stress_type="… | |
+@test Granular.getWallNormalStress(sim, wall_index=1, stress_type="effective")… | |
+@test_throws ErrorException Granular.getWallNormalStress(sim, wall_index=1, st… | |
sim.walls[1].normal = [1.0, 1.0] | |
@test_throws ErrorException Granular.getWallSurfaceArea(sim, 1) |