tremove const keyword - sphere - GPU-based 3D discrete element method algorithm… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit e88c31d85127b10c21a8b375a9ca5f11e7584f9b | |
parent e728720b1d67c2781a1533aaf5d3b1b1dc972736 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 23 May 2014 13:31:22 +0200 | |
remove const keyword | |
Diffstat: | |
M src/navierstokes.cuh | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/src/navierstokes.cuh b/src/navierstokes.cuh | |
t@@ -2828,7 +2828,7 @@ __global__ void findInteractionForce( | |
const Float V_p = dx*dy*dz - phi*dx*dy*dz; | |
const Float Re = devC_params.rho_f*d*phi*v_rel_length/devC_params.mu; | |
Float Cd = pow(0.63 + 4.8/pow(Re, 0.5), 2.0); | |
- const Float chi = 3.7 - 0.65*exp(-pow(1.5 - log10(Re), 2.0)/2.0); | |
+ Float chi = 3.7 - 0.65*exp(-pow(1.5 - log10(Re), 2.0)/2.0); | |
if (v_rel_length < 1.0e-6) { // avoid Re=0 -> Cd=inf, chi=-nan | |
Cd = 0.0; |