From: Martin Kronbichler Date: Tue, 22 Sep 2015 15:27:12 +0000 (+0200) Subject: Replace MPI_BYTE by DEAL_II_DOF_INDEX_MPI_TYPE throughout partitioner X-Git-Tag: v8.4.0-rc2~384^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=777d9e0b3d2246066d5aa8f6be2f946decab0e97;p=dealii.git Replace MPI_BYTE by DEAL_II_DOF_INDEX_MPI_TYPE throughout partitioner --- diff --git a/source/base/partitioner.cc b/source/base/partitioner.cc index 8cfc73e9b2..57c1b96a0f 100644 --- a/source/base/partitioner.cc +++ b/source/base/partitioner.cc @@ -164,13 +164,13 @@ namespace Utilities // Allow non-zero start index for the vector. send this data to all // processors first_index[0] = local_range_data.first; - MPI_Bcast(&first_index[0], sizeof(types::global_dof_index), MPI_BYTE, + MPI_Bcast(&first_index[0], 1, DEAL_II_DOF_INDEX_MPI_TYPE, 0, communicator); // Get the end-of-local_range for all processors - MPI_Allgather(&local_range_data.second, sizeof(types::global_dof_index), - MPI_BYTE, &first_index[1], sizeof(types::global_dof_index), - MPI_BYTE, communicator); + MPI_Allgather(&local_range_data.second, 1, + DEAL_II_DOF_INDEX_MPI_TYPE, &first_index[1], 1, + DEAL_II_DOF_INDEX_MPI_TYPE, communicator); first_index[n_procs] = global_size; // fix case when there are some processors without any locally owned @@ -267,8 +267,8 @@ namespace Utilities for (unsigned int i=0; i