]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Define mpi variable as const
authorDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Thu, 4 Oct 2018 15:04:17 +0000 (17:04 +0200)
committerDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Wed, 9 Jan 2019 18:08:39 +0000 (19:08 +0100)
include/deal.II/base/hdf5.h
source/base/hdf5.cc

index 11381a0fd4a28294d249b104699176e89014c15b..06d7a5216b95334287de3dc59cb2f0f8345f882f 100644 (file)
@@ -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
index 5ff0b366e50d84490421d7090452ad9c9054544b..0081db2b901cbeb1aaf796329a40ecdc79df5542 100644 (file)
@@ -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)
   {}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.