bulk commit
[LbmBenchmarkKernelsPublic.git] / src / BenchKernelD3Q19Common.h
index cceddca1f40362f8ca930b55cc75fb734ee7eee2..268bfed0ebfb0584c174f5ff26a3bd2bc78dfe71 100644 (file)
@@ -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
This page took 0.066109 seconds and 5 git commands to generate.