From 14f9bd76539da35aee2c231d08ac34a826b15b1c Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 19 Nov 2021 06:21:55 -0500 Subject: [PATCH] round 2 of comments --- include/deal.II/base/mpi.h | 4 ++-- source/base/mpi.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5