changes to avoid PMPI_Scatterv: Invalid buffer pointer in Intel MPI