tFixed wall velocity error - sphere - GPU-based 3D discrete element method algo… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 001cde2d241d1bb9b297d0dbbcdda2013093409b | |
parent 45640191a4d4d51119d37baa4063ee631b342f89 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 29 Nov 2012 10:29:48 +0100 | |
Fixed wall velocity error | |
Diffstat: | |
M src/integration.cuh | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/src/integration.cuh b/src/integration.cuh | |
t@@ -281,7 +281,7 @@ __global__ void integrateWalls(Float4* dev_walls_nx, | |
// Update linear velocity | |
//w_mvfd.y += acc * dt; | |
- w_mvfd.y += vel0 + 0.5 * acc * dt; | |
+ w_mvfd.y = vel0 + 0.5 * acc * dt; | |
//cuPrintf("\nwall %d, wmode = %d, force = %f, acc = %f\n", idx, wmode… | |