tChanged write format of wmode - sphere - GPU-based 3D discrete element method … | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 0cc2967dc671b1df21fad06c8d72051b7dbf920a | |
parent c5711cbfa0d4ccc6b229dfbc50404a22966fe418 | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
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)) |