Introduction
Introduction Statistics Contact Development Disclaimer Help
tMake sure np and nd are cast to ints - sphere - GPU-based 3D discrete element …
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit 2e0e029bfbcf000c586f898b1dca6c051d567fcf
parent c8367091b25c6904e91113c258f6c41eadaac7b3
Author: Anders Damsgaard <[email protected]>
Date: Tue, 19 Dec 2017 10:24:51 -0800
Make sure np and nd are cast to ints
Diffstat:
M python/sphere.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/python/sphere.py b/python/sphere.py
t@@ -66,10 +66,10 @@ class sim:
self.version = numpy.ones(1, dtype=numpy.float64)*VERSION
# The number of spatial dimensions. Values other that 3 do not work
- self.nd = numpy.ones(1, dtype=numpy.int32)*nd
+ self.nd = numpy.ones(1, dtype=numpy.int32)*int(nd)
# The number of particles
- self.np = numpy.ones(1, dtype=numpy.uint32)*np
+ self.np = numpy.ones(1, dtype=numpy.uint32)*int(np)
# The simulation id (text string)
self.sid = sid
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.