fixed bug in D3Q19 unpack routine
This commit is contained in:
1 parent
a76ed8867f
commit
f6a0d331be
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -26,7 +26,7 @@ extern "C" void UnpackDist(int q, int Cqx, int Cqy, int Cqz, int *list, int sta
|
||||
// Get the 3-D indices
|
||||
k = n/(Nx*Ny);
|
||||
j = (n-Nx*Ny*k)/Nx;
|
||||
i = n-Nx*Ny*k-Nz*j;
|
||||
i = n-Nx*Ny*k-Nx*j;
|
||||
// Streaming for the non-local distribution
|
||||
i += Cqx;
|
||||
j += Cqy;
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ __global__ void dvc_UnpackDist(int q, int Cqx, int Cqy, int Cqz, int *list, int
|
||||
// Get the 3-D indices
|
||||
k = n/(Nx*Ny);
|
||||
j = (n-Nx*Ny*k)/Nx;
|
||||
i = n-Nx*Ny*k-Nz*j;
|
||||
i = n-Nx*Ny*k-Nx*j;
|
||||
// Streaming for the non-local distribution
|
||||
i += Cqx;
|
||||
j += Cqy;
|
||||
|
||||
Reference in new issue
Block a user