tFix two-grains examples (issue #11), thanks @ovgeorge - Granular.jl - Julia package for granular dynamics simulation
(HTM) git clone git://src.adamsgaard.dk/Granular.jl
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 696a7c97df4dd85b8cd88f2910e6b32e6ad5730f
(DIR) parent 8732f02947d6d56e2591e177772cc90fe3c91f55
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sun, 10 Mar 2019 20:24:48 +0100
Fix two-grains examples (issue #11), thanks @ovgeorge
Diffstat:
M examples/two-grains.jl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/examples/two-grains.jl b/examples/two-grains.jl
t@@ -16,7 +16,7 @@ Granular.addGrainCylindrical!(sim, [0.5, 0.0], 0.1, 0.05)
# Set a velocity of 0.5 m/s along +x for the first grain, to make it bump into
# the second grain.
-sim.grains[1].lin_vel = [1.0, 0.0]
+sim.grains[1].lin_vel[1:2] = [1.0, 0.0]
# Before we can run the simulation, we need to specify the computational time
# step, how often to produce output files for visualization, and for how long to