| tfix adaptive parameter type - sphere - GPU-based 3D discrete element method al… | |
| git clone git://src.adamsgaard.dk/sphere | |
| Log | |
| Files | |
| Refs | |
| LICENSE | |
| --- | |
| commit 15c6647b60beb142a837e63b6f047b619910b5ac | |
| parent 861811ef0f2268b80810e5041bab2856e5417f1f | |
| Author: Anders Damsgaard Christensen <[email protected]> | |
| Date: Mon, 12 Sep 2016 10:13:40 -0700 | |
| fix adaptive parameter type | |
| Diffstat: | |
| M python/sphere.py | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) | |
| --- | |
| diff --git a/python/sphere.py b/python/sphere.py | |
| t@@ -1014,7 +1014,7 @@ class sim: | |
| if self.version >= 2.14: | |
| self.adaptive = numpy.fromfile(fh, dtype=numpy.int32, count=1) | |
| else: | |
| - self.adaptive = 0 | |
| + self.adaptive = numpy.zeros(1, dtype=numpy.float64) | |
| # Per-particle vectors | |
| for i in numpy.arange(self.np): |