trefer to self - sphere - GPU-based 3D discrete element method algorithm with o… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit f8229089d0385e01a20cca9f20fdd4fc4afaef88 | |
parent 81a5aa3dc0539a08375686fcda103645280d4136 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 17 Feb 2015 12:33:32 +0100 | |
refer to self | |
Diffstat: | |
M python/sphere.py | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -5469,7 +5469,7 @@ class sim: | |
if (self.vel[i,0] > 0.0): | |
force += -self.force[i,:] | |
- return force/(sim.L[0]*sim.L[1]) | |
+ return force/(self.L[0]*self.L[1]) | |
def visualize(self, method = 'energy', savefig = True, outformat = 'png', |