tthe idx function should be inline - 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 26dbfd475b621012eab67ab905d05c65b5ac143e
(DIR) parent a25a982fa935925a8d6d952894be275b46fdcd53
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 22 Oct 2013 10:10:46 +0200
tthe idx function should be inline
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@@ -112,7 +112,7 @@ void DEM::transferDarcyFromGlobalDeviceMemory(int statusmsg)
}
// Get linear index from 3D grid position
-__device__ unsigned int idx(
+__inline__ __device__ unsigned int idx(
const int x, const int y, const int z)
{
// without ghost nodes