]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Actually fix compute_local_to_global_vertex_index_map. 6499/head
authorDavid Wells <wellsd2@rpi.edu>
Sun, 6 May 2018 19:57:18 +0000 (15:57 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sun, 6 May 2018 20:33:16 +0000 (16:33 -0400)
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

index 11b4eb1b39557c8161fea4c674d74b9ba903363c..84110a56bda855e1041356f12c3d4edd010ebebd 100644 (file)
@@ -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<types::global_vertex_index> 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());

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.