Fixed bugs in swap algorithm for D3Q19, checked D3Q7 also which I think was right
This commit is contained in:
@@ -106,7 +106,7 @@ extern "C" void SwapD3Q19(char *ID, double *disteven, double *distodd, int Nx, i
|
||||
//.......Back out the 3-D indices for node n..............
|
||||
k = n/(Nx*Ny);
|
||||
j = (n-Nx*Ny*k)/Nx;
|
||||
i = n-Nx*Ny*k-Nz*j;
|
||||
i = n-Nx*Ny*k-Nx*j;
|
||||
|
||||
if (ID[n] > 0){
|
||||
//........................................................................
|
||||
|
||||
Reference in New Issue
Block a user