talso zero forces and torques, change file mode - sphere - GPU-based 3D discret… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 413f93381a24090b49beb6933d6c6d38d5a12ce4 | |
parent 082573d044ba28b2f4ca1a4b51fb96e9d11e9bc0 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 26 Feb 2016 00:42:37 +0100 | |
also zero forces and torques, change file mode | |
Diffstat: | |
M python/sigma-sim1-starter.py | 0 | |
M python/sphere.py | 2 ++ | |
2 files changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/python/sigma-sim1-starter.py b/python/sigma-sim1-starter.py | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -2788,6 +2788,8 @@ class sim: | |
when output from one simulation is reused in another simulation. | |
''' | |
+ self.force = numpy.zeros((self.np, self.nd)) | |
+ self.torque = numpy.zeros((self.np, self.nd)) | |
self.vel = numpy.zeros(self.np*self.nd, dtype=numpy.float64)\ | |
.reshape(self.np, self.nd) | |
self.angvel = numpy.zeros(self.np*self.nd, dtype=numpy.float64)\ |