From: Daniel Garcia-Sanchez Date: Thu, 4 Oct 2018 15:04:17 +0000 (+0200) Subject: Define mpi variable as const X-Git-Tag: v9.1.0-rc1~453^2~45 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10c77b338111092fe583751acd977027e30ed938;p=dealii.git Define mpi variable as const --- 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) {}