tChanged write format of wmode - 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 0cc2967dc671b1df21fad06c8d72051b7dbf920a
(DIR) parent c5711cbfa0d4ccc6b229dfbc50404a22966fe418
(HTM) Author: Anders Damsgaard <adc@geo.au.dk>
Date: Tue, 27 Nov 2012 13:46:31 +0100
Changed write format of wmode
Diffstat:
M python/sphere.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -335,7 +335,8 @@ class Spherebin:
fh.write(self.V_b.astype(numpy.float64))
fh.write(self.nw.astype(numpy.uint32))
- fh.write(self.wmode.astype(numpy.int32))
+ for i in range(self.nw):
+ fh.write(self.wmode[i].astype(numpy.int32))
for i in range(self.nw):
fh.write(self.w_n[i,:].astype(numpy.float64))
fh.write(self.w_x[i].astype(numpy.float64))