summaryrefslogtreecommitdiff
path: root/boost/mpi/collectives/all_gather.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/mpi/collectives/all_gather.hpp')
-rw-r--r--boost/mpi/collectives/all_gather.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/mpi/collectives/all_gather.hpp b/boost/mpi/collectives/all_gather.hpp
index 4adaeb9c87..cf75f329fc 100644
--- a/boost/mpi/collectives/all_gather.hpp
+++ b/boost/mpi/collectives/all_gather.hpp
@@ -57,8 +57,8 @@ all_gather_impl(const communicator& comm, const T* in_values, int n,
std::vector<int> oasizes(nproc);
int oasize = oa.size();
BOOST_MPI_CHECK_RESULT(MPI_Allgather,
- (&oasize, 1, MPI_INTEGER,
- c_data(oasizes), 1, MPI_INTEGER,
+ (&oasize, 1, MPI_INT,
+ c_data(oasizes), 1, MPI_INT,
MPI_Comm(comm)));
// Gather the archives, which can be of different sizes, so
// we need to use allgatherv.