]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use MPI_UNSIGNED instead of MPI_INT where appropriate.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 22 Jan 2011 20:52:13 +0000 (20:52 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 22 Jan 2011 20:52:13 +0000 (20:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@23242 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_handler_policy.cc
deal.II/source/dofs/dof_renumbering.cc
deal.II/source/dofs/dof_tools.cc

index f4458edc3447c3cb544b733862d6aea5ea12f35c..892526f7604f3de94a4e34fbadb3015ba3812588 100644 (file)
@@ -1004,8 +1004,8 @@ namespace internal
            unsigned int sent=needs_to_get_cells.size();
            unsigned int recv=senders.size();
 
-           MPI_Reduce(&sent, &sum_send, 1, MPI_INT, MPI_SUM, 0, tr->get_communicator());
-           MPI_Reduce(&recv, &sum_recv, 1, MPI_INT, MPI_SUM, 0, tr->get_communicator());
+           MPI_Reduce(&sent, &sum_send, 1, MPI_UNSIGNED, MPI_SUM, 0, tr->get_communicator());
+           MPI_Reduce(&recv, &sum_recv, 1, MPI_UNSIGNED, MPI_SUM, 0, tr->get_communicator());
            Assert(sum_send==sum_recv, ExcInternalError());
          }
 #endif
@@ -1127,9 +1127,9 @@ namespace internal
        number_cache.n_locally_owned_dofs_per_processor.resize(n_cpus);
 
        MPI_Allgather ( &number_cache.n_locally_owned_dofs,
-                       1, MPI_INT,
+                       1, MPI_UNSIGNED,
                        &number_cache.n_locally_owned_dofs_per_processor[0],
-                       1, MPI_INT,
+                       1, MPI_UNSIGNED,
                        tr->get_communicator());
 
        const unsigned int
@@ -1506,7 +1506,7 @@ namespace internal
                                           // determine maximum size of IndexSet
          unsigned int max_size;
 
-         MPI_Allreduce(&my_size, &max_size, 1, MPI_INT, MPI_MAX, tr->get_communicator());
+         MPI_Allreduce(&my_size, &max_size, 1, MPI_UNSIGNED, MPI_MAX, tr->get_communicator());
 
                                           // as we are reading past the end, we
                                           // need to increase the size of the
index 1eb552c568022da063e7b47492d3d6b722c61e1d..dd49276ec9287cd7739888ab09c6bea72b949141 100644 (file)
@@ -834,8 +834,8 @@ namespace DoFRenumbering
          all_dof_counts(fe_collection.n_components() *
                         Utilities::System::get_n_mpi_processes (tria->get_communicator()));
 
-       MPI_Allgather ( &local_dof_count[0], n_buckets, MPI_INT, &all_dof_counts[0],
-                       n_buckets, MPI_INT, tria->get_communicator());
+       MPI_Allgather ( &local_dof_count[0], n_buckets, MPI_UNSIGNED, &all_dof_counts[0],
+                       n_buckets, MPI_UNSIGNED, tria->get_communicator());
 
        for (unsigned int i=0; i<n_buckets; ++i)
          Assert (all_dof_counts[n_buckets*tria->locally_owned_subdomain()+i]
index bfe258608573275560a6112c44a09eb1dc94db6e..c9d59b85688b210170d58d8e751b033de68f32e1 100644 (file)
@@ -4340,7 +4340,7 @@ DoFTools::count_dofs_per_component (
       std::vector<unsigned int> local_dof_count = dofs_per_component;
 
       MPI_Allreduce ( &local_dof_count[0], &dofs_per_component[0], n_target_components,
-                     MPI_INT, MPI_SUM, tria->get_communicator());
+                     MPI_UNSIGNED, MPI_SUM, tria->get_communicator());
     }
 #endif
 #endif
@@ -4417,7 +4417,7 @@ count_dofs_per_block (const DoFHandler<dim,spacedim>& dof_handler,
     {
       std::vector<unsigned int> local_dof_count = dofs_per_block;
       MPI_Allreduce ( &local_dof_count[0], &dofs_per_block[0], n_target_blocks,
-                     MPI_INT, MPI_SUM, tria->get_communicator());
+                     MPI_UNSIGNED, MPI_SUM, tria->get_communicator());
     }
 #endif
 #endif

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.