tFix two-grains examples (issue #11), thanks @ovgeorge - Granular.jl - Julia pa… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 696a7c97df4dd85b8cd88f2910e6b32e6ad5730f | |
parent 8732f02947d6d56e2591e177772cc90fe3c91f55 | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
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 … |