1d slab mpi code working