Skip to content
Snippets Groups Projects
Commit 56a38861 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Merge branch 'correct_MPI_reduce' into 'master'

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

See merge request !660
parents 8324e28e b4bd104c
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