Skip to content
Snippets Groups Projects
Commit 94eff897 authored by Markus Holzer's avatar Markus Holzer
Browse files

Merge branch 'gpu-field-accessor' into 'master'

Use uint_t instead of int to access f of gpu field

See merge request walberla/walberla!659
parents 17a4582c b3337245
No related merge requests found
......@@ -78,7 +78,7 @@ namespace gpu
__device__ __forceinline__ bool isValidPosition() { return true; }
__device__ T & get() { return * (T*)(ptr_); }
__device__ T & get( int f) { return * (T*)(ptr_ + f * fOffset_); }
__device__ T & get( uint_t f) { return * (T*)(ptr_ + f * fOffset_); }
__device__ T & getNeighbor( int cx, int cy, int cz ) const
......@@ -88,7 +88,7 @@ namespace gpu
cz * zOffset_ );
}
__device__ T & getNeighbor( int cx, int cy, int cz, int cf )
__device__ T & getNeighbor( int cx, int cy, int cz, uint_t cf )
{
return * (T*)( ptr_ + cx * xOffset_ +
cy * yOffset_ +
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment