tadd credits to contributer - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit bfea4af578bc5b51504c5f51256ed9aa8a031662
(DIR) parent f881fe5dabefd584e475f38dbc42e234a4754cc0
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Wed, 18 Jun 2014 12:35:52 +0200
add credits to contributer
Diffstat:
M python/sphere.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -1957,7 +1957,7 @@ class sim:
# Find position in 3d mesh from linear index
gridpos[0] = (i % (coarsegrid[0]))
- gridpos[1] = numpy.floor(i/(coarsegrid[0])) % (coarsegrid[1])
+ gridpos[1] = numpy.floor(i/(coarsegrid[0]))%(coarsegrid[1]) # Thanks Horacio!
gridpos[2] = numpy.floor(i/((coarsegrid[0])*(coarsegrid[1])))
# Place particles in grid structure, and randomly adjust the