]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use the correct data type in MPI communications.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 22 Mar 2013 16:02:51 +0000 (16:02 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 22 Mar 2013 16:02:51 +0000 (16:02 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@28992 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_renumbering.cc

index 571286b87f1776b6db031292c0fdc026e1c92789..420ad7843fa57ad392f6f6786ba5a469cb10bf23 100644 (file)
@@ -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; i<n_buckets; ++i)
           Assert (all_dof_counts[n_buckets*tria->locally_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; i<n_buckets; ++i)
           Assert (all_dof_counts[n_buckets*tria->locally_owned_subdomain()+i]

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.