Granular.jl

Julia package for granular dynamics simulation
git clone git://src.adamsgaard.dk/Granular.jl
Log | Files | Refs | README | LICENSE

commit 520512a32bdaad768cc593e0c937b43dccd89083
parent 713455f462ecb5e74b9b719f66a72d13fc60b16b
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed,  9 May 2018 22:17:20 -0400

Fix calls to getWallNormalStress during testing

Diffstat:
Mtest/wall.jl | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/wall.jl b/test/wall.jl @@ -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)