Skip to content

Commit

Permalink
fix scatterv error
Browse files Browse the repository at this point in the history
  • Loading branch information
patflick committed Oct 14, 2015
1 parent 0f4cbaf commit 27b4acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mxx/distribution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void stable_distribute(_InIterator begin, _InIterator end, _OutIterator out, con
send_sizes[i] = part.local_size(i);
}
// TODO: scatterv with iterators rather than pointers
mxx::scatterv(&(*out), send_sizes, &(*out), root, comm);
mxx::scatterv(&(*out), send_sizes, &(*out), part.local_size(), root, comm);
} else {
// use scatterv to receive
size_t recv_size = part.local_size();
Expand Down

0 comments on commit 27b4acb

Please sign in to comment.