tfix conditional statement - sphere - GPU-based 3D discrete element method algo… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 27d9ec5c70dc36de44a3b440e1eab9293e67b3b6 | |
parent 577e781f0a7d37a8e713288a710ed44773c25b9e | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 26 Nov 2014 11:37:32 +0100 | |
fix conditional statement | |
Diffstat: | |
M src/darcy.cuh | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/src/darcy.cuh b/src/darcy.cuh | |
t@@ -442,7 +442,7 @@ __global__ void findDarcyPorosities( | |
// Central difference after first iteration | |
Float dphi; | |
- if (iteration > 0) | |
+ if (iteration == 0) | |
dphi = phi_new - phi; | |
else | |
dphi = 0.5*(phi_new - phi_0); |