]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use the correct data type in MPI communications.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 22 Mar 2013 15:58:20 +0000 (15:58 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 22 Mar 2013 15:58:20 +0000 (15:58 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@28991 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_handler_policy.cc

index 129df322a5a92d5d8b5e3970354bd11d2a2c45e5..e4ec53924140f50b606154df903bc8c9aa6d8810 100644 (file)
@@ -1964,9 +1964,9 @@ namespace internal
         number_cache.n_locally_owned_dofs_per_processor.resize(n_cpus);
 
         MPI_Allgather ( &number_cache.n_locally_owned_dofs,
-                        1, MPI_UNSIGNED,
+                        1, DEAL_II_DOF_INDEX_MPI_TYPE,
                         &number_cache.n_locally_owned_dofs_per_processor[0],
-                        1, MPI_UNSIGNED,
+                        1, DEAL_II_DOF_INDEX_MPI_TYPE,
                         tr->get_communicator());
 
         const dealii::types::global_dof_index
@@ -2210,9 +2210,9 @@ namespace internal
             number_cache.n_locally_owned_dofs_per_processor.resize(n_cpus);
 
             MPI_Allgather ( &number_cache.n_locally_owned_dofs,
-                            1, MPI_UNSIGNED,
+                            1, DEAL_II_DOF_INDEX_MPI_TYPE,
                             &number_cache.n_locally_owned_dofs_per_processor[0],
-                            1, MPI_UNSIGNED,
+                            1, DEAL_II_DOF_INDEX_MPI_TYPE,
                             tr->get_communicator());
 
             const unsigned int

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.