From: bangerth Date: Fri, 22 Mar 2013 16:02:51 +0000 (+0000) Subject: Use the correct data type in MPI communications. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34409d1c4532769b59f0a74bab0f0a9dbcad6717;p=dealii-svn.git Use the correct data type in MPI communications. git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@28992 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/dofs/dof_renumbering.cc b/deal.II/source/dofs/dof_renumbering.cc index 571286b87f..420ad7843f 100644 --- a/deal.II/source/dofs/dof_renumbering.cc +++ b/deal.II/source/dofs/dof_renumbering.cc @@ -731,8 +731,11 @@ namespace DoFRenumbering all_dof_counts(fe_collection.n_components() * Utilities::MPI::n_mpi_processes (tria->get_communicator())); - MPI_Allgather ( &local_dof_count[0], n_buckets, MPI_UNSIGNED, &all_dof_counts[0], - n_buckets, MPI_UNSIGNED, tria->get_communicator()); + MPI_Allgather ( &local_dof_count[0], + n_buckets, DEAL_II_DOF_INDEX_MPI_TYPE, + &all_dof_counts[0], + n_buckets, DEAL_II_DOF_INDEX_MPI_TYPE, + tria->get_communicator()); for (unsigned int i=0; ilocally_owned_subdomain()+i] @@ -1028,8 +1031,11 @@ namespace DoFRenumbering Assert (sizeof(types::global_dof_index) == sizeof(unsigned int), ExcNotImplemented()); - MPI_Allgather ( &local_dof_count[0], n_buckets, MPI_UNSIGNED, &all_dof_counts[0], - n_buckets, MPI_UNSIGNED, tria->get_communicator()); + MPI_Allgather ( &local_dof_count[0], + n_buckets, DEAL_II_DOF_INDEX_MPI_TYPE, + &all_dof_counts[0], + n_buckets, DEAL_II_DOF_INDEX_MPI_TYPE, + tria->get_communicator()); for (unsigned int i=0; ilocally_owned_subdomain()+i]