From 7b005d6246a8ebc8e976a4e8f2b5a38e1c2c95b1 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 6 May 2018 15:57:18 -0400 Subject: [PATCH] Actually fix compute_local_to_global_vertex_index_map. The MPI types do not match the deal.II types, which is causes chaos when we use 32 bit indices. --- source/grid/grid_tools.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index 11b4eb1b39..84110a56bd 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -2139,8 +2139,8 @@ next_cell: // processors and shifting the indices accordingly const unsigned int n_cpu = Utilities::MPI::n_mpi_processes(triangulation.get_communicator()); std::vector indices(n_cpu); - int ierr = MPI_Allgather(&next_index, 1, DEAL_II_DOF_INDEX_MPI_TYPE, indices.data(), - 1, DEAL_II_DOF_INDEX_MPI_TYPE, triangulation.get_communicator()); + int ierr = MPI_Allgather(&next_index, 1, DEAL_II_VERTEX_INDEX_MPI_TYPE, indices.data(), + 1, DEAL_II_VERTEX_INDEX_MPI_TYPE, triangulation.get_communicator()); AssertThrowMPI(ierr); Assert(indices.begin() + triangulation.locally_owned_subdomain() < indices.end(), ExcInternalError()); -- 2.39.5