twrong gradient - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
HTML git clone git://src.adamsgaard.dk/sphere
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 641c74b33e4be903d126046bc97259e0b22fdef0
DIR parent e99659070f77f8c89c67391a7e115f218fbe3b4e
HTML Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 3 Jun 2014 11:00:12 +0200
wrong gradient
Diffstat:
M src/navierstokes.cuh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/src/navierstokes.cuh b/src/navierstokes.cuh
t@@ -2207,7 +2207,7 @@ __global__ void findPredNSvelocities(
(p - p_yn)/dy,
(p - p_zn)/dz);
#ifdef SET_1
- pressure_term = -beta*dt/(rho*phi)*grad_p_x;
+ pressure_term = -beta*dt/(rho*phi)*grad_p;
#endif
#ifdef SET_2
pressure_term = -beta*dt/rho*grad_p;