tfix conditional statement - 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 27d9ec5c70dc36de44a3b440e1eab9293e67b3b6
DIR parent 577e781f0a7d37a8e713288a710ed44773c25b9e
HTML Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
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(-)
---
DIR 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);