Skip to content
Snippets Groups Projects
Commit b4bd104c authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make mpicollectgroup1_reduce() loop over all the elements as described by the MPI standard.

parent a86aa183
No related branches found
No related tags found
1 merge request!660Make mpicollectgroup1_reduce() loop over all the elements as described by the MPI standard.
......@@ -230,7 +230,7 @@ static void mpicollectgroup1_reduce(void *in, void *inout, int *len,
MPI_Datatype *datatype) {
for (int i = 0; i < *len; ++i)
doreduce1(&((struct mpicollectgroup1 *)inout)[0],
doreduce1(&((struct mpicollectgroup1 *)inout)[i],
&((const struct mpicollectgroup1 *)in)[i]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment