]> https://gitweb.dealii.org/ - dealii.git/commitdiff
HDF5 Namespace documentation errors fixed 8708/head
authorJan Philipp Thiele <thiele@ifam.uni-hannover.de>
Fri, 6 Sep 2019 17:53:05 +0000 (19:53 +0200)
committerJan Philipp Thiele <thiele@ifam.uni-hannover.de>
Fri, 6 Sep 2019 17:53:05 +0000 (19:53 +0200)
Some parts of the code provided in the Data exchange with python scripts section where not matching the namespace definitions.

include/deal.II/base/hdf5.h

index f33622f2a7012c1b3d92ed14e66788e9cfe70ff2..75a2965706bca199862860e77cbd30b80a7487f5 100644 (file)
@@ -291,10 +291,10 @@ DEAL_II_NAMESPACE_OPEN
  *
  * C++ deal.II simulation with MPI HDF5:
  * @code
- * hdf5::File data_file("simulation.hdf5",
- *                      MPI_COMM_WORLD,
- *                      HDF5::FileAccessMode::Mode::open);
- * hdf5::Group data = data_file.open_group("data");
+ * HDF5::File data_file("simulation.hdf5",
+ *                      HDF5::File::FileAccessMode::open,
+ *                      MPI_COMM_WORLD);
+ * HDF5::Group data = data_file.open_group("data");
  *
  * auto nb_frequency_points = data.get_attribute<int>("nb_frequency_points");
  * auto rho = data.get_attribute<double>("rho");

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.