tPreallocation of Es and Es_dot in energy visualization - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 6b011403d94adccbf4b495321927dbd46ef64b01
(DIR) parent c96448cc01d728f0d903554cd1a2666a9847901b
(HTM) Author: Anders Damsgaard <adc@geo.au.dk>
Date: Wed, 10 Oct 2012 09:35:32 +0200
Preallocation of Es and Es_dot in energy visualization
Diffstat:
M python/sphere.py | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -918,7 +918,9 @@ def visualize(project, method = 'energy', savefig = False, outformat = 'png'):
Ekin = numpy.zeros(lastfile+1)
Erot = numpy.zeros(lastfile+1)
Es = numpy.zeros(lastfile+1)
+ Ev = numpy.zeros(lastfile+1)
Es_dot = numpy.zeros(lastfile+1)
+ Ev_dot = numpy.zeros(lastfile+1)
Esum = numpy.zeros(lastfile+1)
# Read energy values from project binaries