multidim working with mpi and mpi+openmp