From 528be10ad9182eaff4e8bffb6e857393be3d844a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth <bangerth@colostate.edu> Date: Fri, 13 May 2022 14:55:11 -0600 Subject: [PATCH] Simplify the type used by ConsensusAlgorithm in compute_n_point_to_point_communications(). --- source/base/mpi.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/base/mpi.cc b/source/base/mpi.cc index 29cef1bd59..67be2af9b6 100644 --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@ -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(); } -- 2.39.5