| tverified findDistMod changes - sphere - GPU-based 3D discrete element method a… | |
| git clone git://src.adamsgaard.dk/sphere | |
| Log | |
| Files | |
| Refs | |
| LICENSE | |
| --- | |
| commit e567138fef8fd2ec15afe7a583c3274c757839d0 | |
| parent aed17f7c9168b1125b0334b6039383407f843718 | |
| Author: Anders Damsgaard <[email protected]> | |
| Date: Wed, 30 Apr 2014 12:01:32 +0200 | |
| verified findDistMod changes | |
| Diffstat: | |
| M src/contactsearch.cuh | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) | |
| --- | |
| diff --git a/src/contactsearch.cuh b/src/contactsearch.cuh | |
| t@@ -31,7 +31,7 @@ __device__ int findDistMod(int3* targetCell, Float3* distmod) | |
| // Periodic y-boundary | |
| if (targetCell->y < 0) { | |
| //targetCell->y = devC_grid.num[1] - 1; | |
| - targetCell->y += devC_grid.num[0]; | |
| + targetCell->y += devC_grid.num[1]; | |
| *distmod += MAKE_FLOAT3(0.0f, devC_grid.L[1], 0.0f); | |
| } | |
| if (targetCell->y >= devC_grid.num[1]) { |