tincrease size of staggered grid array allocation - sphere - GPU-based 3D discr… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit a9f8a2dd9e09d2d28668068702d302ed7f6fbe46 | |
parent 3a0c00a2ce64352edbc70f8ff5c40c07407134e9 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 3 Jun 2014 16:45:36 +0200 | |
increase size of staggered grid array allocation | |
Diffstat: | |
M src/navierstokes.cpp | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/navierstokes.cpp b/src/navierstokes.cpp | |
t@@ -52,8 +52,8 @@ unsigned int DEM::NScellsVelocity() | |
{ | |
// Congruent padding for velocity grids. See "Cohen and Molemaker 'A fast | |
// double precision CFD code using CUDA'" for details | |
- //return (ns.nx+3)*(ns.ny+3)*(ns.nz+3); | |
- return (ns.nx+1)*(ns.ny+1)*(ns.nz+1); | |
+ return (ns.nx+3)*(ns.ny+3)*(ns.nz+3); | |
+ //return (ns.nx+1)*(ns.ny+1)*(ns.nz+1); | |
} | |
// Free memory |