]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify the type used by ConsensusAlgorithm in compute_n_point_to_point_communicatio... 13731/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 13 May 2022 20:55:11 +0000 (14:55 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 13 May 2022 21:00:15 +0000 (15:00 -0600)
source/base/mpi.cc

index 29cef1bd5903dcff04dddd825340d66f1d882342..67be2af9b67c0e6b3e0a300f61b2da7e41e479bb 100644 (file)
@@ -19,6 +19,7 @@
 #include <deal.II/base/mpi.h>
 #include <deal.II/base/mpi.templates.h>
 #include <deal.II/base/mpi_compute_index_owner_internal.h>
+#include <deal.II/base/mpi_consensus_algorithms.templates.h>
 #include <deal.II/base/mpi_tags.h>
 #include <deal.II/base/multithread_info.h>
 #include <deal.II/base/utilities.h>
@@ -27,6 +28,8 @@
 #include <deal.II/lac/la_parallel_vector.h>
 #include <deal.II/lac/vector_memory.h>
 
+#include <boost/serialization/utility.hpp>
+
 #include <iostream>
 #include <numeric>
 #include <set>
@@ -381,7 +384,7 @@ namespace Utilities
       if (Utilities::MPI::min((my_destinations_are_unique ? 1 : 0), mpi_comm) ==
           1)
         {
-          return ConsensusAlgorithms::nbx<std::vector<char>, std::vector<char>>(
+          return ConsensusAlgorithms::nbx<char, char>(
             destinations, {}, {}, {}, mpi_comm);
         }
 
@@ -477,7 +480,7 @@ namespace Utilities
       if (Utilities::MPI::min((my_destinations_are_unique ? 1 : 0), mpi_comm) ==
           1)
         {
-          return ConsensusAlgorithms::nbx<std::vector<char>, std::vector<char>>(
+          return ConsensusAlgorithms::nbx<char, char>(
                    destinations, {}, {}, {}, mpi_comm)
             .size();
         }

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.