From 10c77b338111092fe583751acd977027e30ed938 Mon Sep 17 00:00:00 2001 From: Daniel Garcia-Sanchez Date: Thu, 4 Oct 2018 17:04:17 +0200 Subject: [PATCH] Define mpi variable as const --- include/deal.II/base/hdf5.h | 6 +++++- source/base/hdf5.cc | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/deal.II/base/hdf5.h b/include/deal.II/base/hdf5.h index 11381a0fd4..06d7a5216b 100644 --- a/include/deal.II/base/hdf5.h +++ b/include/deal.II/base/hdf5.h @@ -261,7 +261,11 @@ namespace HDF5 class HDF5Object { protected: - HDF5Object(const std::string name, bool mpi); + /** + * Constructor. `string_name` is the name of the HDF5 Object. If `mpi` is + * True then MPI I/O is used. + */ + HDF5Object(const std::string name, const bool mpi); public: enum class Mode diff --git a/source/base/hdf5.cc b/source/base/hdf5.cc index 5ff0b366e5..0081db2b90 100644 --- a/source/base/hdf5.cc +++ b/source/base/hdf5.cc @@ -343,7 +343,7 @@ namespace HDF5 } // namespace internal - HDF5Object::HDF5Object(const std::string name, bool mpi) + HDF5Object::HDF5Object(const std::string name, const bool mpi) : name(name) , mpi(mpi) {} -- 2.39.5