tFixed wall velocity error - 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 001cde2d241d1bb9b297d0dbbcdda2013093409b
(DIR) parent 45640191a4d4d51119d37baa4063ee631b342f89
(HTM) Author: Anders Damsgaard <adc@geo.au.dk>
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(-)
---
(DIR) 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, w_mvfd.z, acc);