tincrease size of staggered grid array allocation - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit a9f8a2dd9e09d2d28668068702d302ed7f6fbe46
(DIR) parent 3a0c00a2ce64352edbc70f8ff5c40c07407134e9
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
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(-)
---
(DIR) 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