tadd dp_expl to debug output - sphere - GPU-based 3D discrete element method al… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 4ce3ac463aec27a2af0d36cd1357f521496d41f8 | |
parent c880b88b82551b826e8514baf6ed3718ea58fe5c | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 12 Nov 2014 10:09:16 +0100 | |
add dp_expl to debug output | |
Diffstat: | |
M src/darcy.cuh | 4 +++- | |
1 file changed, 3 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/src/darcy.cuh b/src/darcy.cuh | |
t@@ -1042,7 +1042,7 @@ __global__ void updateDarcySolution( | |
dp_impl = 0.0; | |
//p_new = p; | |
- // choose integration method | |
+ // choose integration method, parameter in [0.0; 1.0] | |
// epsilon = 0: explicit | |
// epsilon = 0.5: Crank-Nicolson | |
// epsilon = 1: implicit | |
t@@ -1067,6 +1067,7 @@ __global__ void updateDarcySolution( | |
"p_x = %e, %e\n" | |
"p_y = %e, %e\n" | |
"p_z = %e, %e\n" | |
+ "dp_expl = %e\n" | |
"p_old = %e\n" | |
"laplace_p = %e\n" | |
"grad_p = %e, %e, %e\n" | |
t@@ -1082,6 +1083,7 @@ __global__ void updateDarcySolution( | |
p_xn, p_xp, | |
p_yn, p_yp, | |
p_zn, p_zp, | |
+ dp_expl, | |
p_old, | |
laplace_p, | |
grad_p.x, grad_p.y, grad_p.z, |