Grid structure at the lateral boundaries with non-cyclic lateral boundary conditions along the left-right direction