tincrease size of arrays - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
HTML git clone git://src.adamsgaard.dk/sphere
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 6d83996ddf0afa6017925b739e6c73055223e84c
DIR parent 8fd55186d6605a4a154a54a1f8bf9aae4da40d88
HTML Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Fri, 4 Dec 2015 19:02:50 +0100
increase size of arrays
Diffstat:
M python/sphere.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/python/sphere.py b/python/sphere.py
t@@ -6207,7 +6207,7 @@ class sim:
fig = plt.figure(figsize=(20,8))
# Allocate arrays
- t = numpy.zeros(lastfile-firststep)
+ t = numpy.zeros(lastfile-firststep + 1)
Epot = numpy.zeros_like(t)
Ekin = numpy.zeros_like(t)
Erot = numpy.zeros_like(t)