added root parameter to MPI_Gatherv()

git-svn-id: svn://anubis/gvsu@246 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-11-23 03:25:03 +00:00
parent 43a5b30712
commit cdcad5abb5

View File

@ -97,7 +97,7 @@ int main(int argc, char * argv[])
} }
MPI_Gatherv(&col_i_vals_for_proc_p[0], my_num_rows, MPI_INT, MPI_Gatherv(&col_i_vals_for_proc_p[0], my_num_rows, MPI_INT,
&recvbuf[0], &counts[0], &displs[0], &recvbuf[0], &counts[0], &displs[0],
MPI_INT, MPI_COMM_WORLD); MPI_INT, i, MPI_COMM_WORLD);
} }
/* Put my received entries into my columns of the matrix */ /* Put my received entries into my columns of the matrix */