tFix calls to getWallNormalStress during testing - Granular.jl - Julia package for granular dynamics simulation
HTML git clone git://src.adamsgaard.dk/Granular.jl
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 520512a32bdaad768cc593e0c937b43dccd89083
DIR parent 713455f462ecb5e74b9b719f66a72d13fc60b16b
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
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(-)
---
DIR diff --git a/test/wall.jl b/test/wall.jl
t@@ -51,10 +51,10 @@ Granular.addWallLinearFrictionless!(sim, [0., 1.], 1., verbose=false)
@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") ≈ 1.0
sim.walls[1].force = 1.0
-@test Granular.getWallNormalStress(sim, 1, stress_type="effective") ≈ 1.0/(20.0*2.0)
-@test_throws ErrorException Granular.getWallNormalStress(sim, 1, stress_type="nonexistent")
+@test Granular.getWallNormalStress(sim, wall_index=1, stress_type="effective") ≈ 1.0/(20.0*2.0)
+@test_throws ErrorException Granular.getWallNormalStress(sim, wall_index=1, stress_type="nonexistent")
sim.walls[1].normal = [1.0, 1.0]
@test_throws ErrorException Granular.getWallSurfaceArea(sim, 1)