trefine top fluid gradient bc - sphere - GPU-based 3D discrete element method a… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 694188f73c821ffd3d8d2374f833f864dba3a045 | |
parent f741757f812fcc95319986bf551a3c6e41604c6c | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 17 Nov 2014 11:14:48 +0100 | |
refine top fluid gradient bc | |
Diffstat: | |
M src/darcy.cuh | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/darcy.cuh b/src/darcy.cuh | |
t@@ -541,7 +541,7 @@ __global__ void findDarcyPressureForce( | |
Float p_zp = dev_darcy_p[d_idx(i_x,i_y,i_z+1)]; | |
// Add Neumann BC at top wall | |
- /*if (i_z >= wall0_iz - 1) | |
+ if (i_z >= wall0_iz - 1) | |
p_zp = p; | |
//p_zp = p_zn;*/ | |
t@@ -564,7 +564,7 @@ __global__ void findDarcyPressureForce( | |
//devC_params.g[2]); | |
// Add Neumann BC at top wall | |
- if (i_z >= wall0_iz - 1) | |
+ if (i_z >= wall0_iz) | |
f_p.z = 0.0; | |
/*printf("%d,%d,%d findPF:\n" |