Switched MPI_Gather to MPI_gatherv