check serial decomp

This commit is contained in:
James McClure 2018-11-29 14:32:25 -05:00
parent 20b19fada8
commit 7b6d2b5513

View File

@ -168,6 +168,10 @@ int main(int argc, char **argv)
int64_t y = yStart + jp*ny + j-1;
// int64_t z = zStart + kp*nz + k-1;
int64_t z = zStart + kp*nz + k-1 - z_transition_size;
if (x<xStart) x=xStart;
if (!(x<Nx)) x=Nx-1;
if (y<yStart) y=yStart;
if (!(y<Ny)) y=Ny-1;
if (z<zStart) z=zStart;
if (!(z<Nz)) z=Nz-1;
int64_t nlocal = k*(nx+2)*(ny+2) + j*(nx+2) + i;