finally fix domain decomposition (1D= always along z direction in real space, if this is not possible, break in 2D)