X-Git-Url: http://git.rrze.uni-erlangen.de/gitweb/?p=LbmBenchmarkKernelsPublic.git;a=blobdiff_plain;f=src%2FBenchKernelD3Q19Common.h;fp=src%2FBenchKernelD3Q19Common.h;h=268bfed0ebfb0584c174f5ff26a3bd2bc78dfe71;hp=cceddca1f40362f8ca930b55cc75fb734ee7eee2;hb=e3f82424829ebb623343ce0092238f83b4a1b8c2;hpb=ecf590ae9bb13ba2b2f01c3bf7a53056a8b1467b diff --git a/src/BenchKernelD3Q19Common.h b/src/BenchKernelD3Q19Common.h index cceddca..268bfed 100644 --- a/src/BenchKernelD3Q19Common.h +++ b/src/BenchKernelD3Q19Common.h @@ -74,9 +74,9 @@ static inline int FNAME(PINDEX5)(int dims[3], int x, int y, int z, int d) #endif #ifdef DATA_LAYOUT_SOA - return d * dims[0] * dims[1] * dims[2] + z * dims[0] * dims[1] + y * dims[0] + x; + return d * dims[0] * dims[1] * dims[2] + x * dims[1] * dims[2] + y * dims[2] + z; #elif DATA_LAYOUT_AOS - return z * dims[0] * dims[1] * N_D3Q19 + y * dims[0] * N_D3Q19 + x * N_D3Q19 + d; + return x * dims[1] * dims[2] * N_D3Q19 + y * dims[2] * N_D3Q19 + z * N_D3Q19 + d; #else #error P_INDEX_5 function no implemented for chosen data layout. #endif