From: Timo Heister Date: Fri, 19 Nov 2021 11:21:55 +0000 (-0500) Subject: round 2 of comments X-Git-Tag: v9.4.0-rc1~819^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12964%2Fhead;p=dealii.git round 2 of comments --- diff --git a/include/deal.II/base/mpi.h b/include/deal.II/base/mpi.h index 3449bebec3..ea98a5c317 100644 --- a/include/deal.II/base/mpi.h +++ b/include/deal.II/base/mpi.h @@ -522,14 +522,14 @@ namespace Utilities * else * { * MPI_Datatype bigtype = - * Utilities::MPI::create_mpi_data_type_n_bytes(buffer.size()); + * Utilities::MPI::create_mpi_data_type_n_bytes(buffer.size()); * MPI_Send(buffer.data(), 1, bigtype, dest, tag, comm); * MPI_Type_free(&bigtype); * } * */ MPI_Datatype - create_mpi_data_type_n_bytes(std::size_t n_bytes); + create_mpi_data_type_n_bytes(const std::size_t n_bytes); /** * Return the sum over all processors of the value @p t. This function is diff --git a/source/base/mpi.cc b/source/base/mpi.cc index bcb7bcb0ee..f72835b025 100644 --- a/source/base/mpi.cc +++ b/source/base/mpi.cc @@ -298,7 +298,7 @@ namespace Utilities MPI_Datatype - create_mpi_data_type_n_bytes(std::size_t n_bytes) + create_mpi_data_type_n_bytes(const std::size_t n_bytes) { # ifdef DEAL_II_WITH_MPI // Simplified version from BigMPI repository, see