Introduction
Introduction Statistics Contact Development Disclaimer Help
tfixed nb0 value error - sphere - GPU-based 3D discrete element method algorith…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit 658c4499b8a4ee10c5ca6fddcb8ca22514cd26e0
parent 6a632c21a2d8291d75b9afa1ed852334d7089fd8
Author: Anders Damsgaard <[email protected]>
Date: Mon, 11 Mar 2013 23:34:16 +0100
fixed nb0 value error
Diffstat:
M python/sphere.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/python/sphere.py b/python/sphere.py
t@@ -719,11 +719,12 @@ class Spherebin:
bondparticles = numpy.unique(numpy.random.random_integers(0, high=self…
if (bondparticles.size % 2 > 0):
bondparticles = bondparticles[:-1].copy()
- bondparticles.reshape(int(bondparticles.size/2), 2)
- self.nb0[0] = bonds_i.size/2
+ bondparticles = bondparticles.reshape(int(bondparticles.size/2), 2).co…
+ print(bondparticles.size)
+ print(bondparticles.shape)
for n in numpy.arange(self.nb0):
- createBondPair(bondparticles[n,0], bondparticles[n,1], spacing)
+ self.createBondPair(bondparticles[n,0], bondparticles[n,1], spacin…
def zeroKinematics(self):
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.