From 3194442d34e6c9a0d3efe85f997323c1ab58ec6a Mon Sep 17 00:00:00 2001 From: Daniel Garcia-Sanchez Date: Mon, 13 Aug 2018 18:34:04 +0200 Subject: [PATCH] Add functions Add read_data() function Add io_mode() and check_io_mode() functions Add local_no_collective_cause() and global_no_collective_cause() --- include/deal.II/base/hdf5.h | 130 +++++++-- source/base/hdf5.cc | 555 ++++++++++++++++++++++++++++++------ 2 files changed, 578 insertions(+), 107 deletions(-) diff --git a/include/deal.II/base/hdf5.h b/include/deal.II/base/hdf5.h index c396d105f3..9bc30e8ac2 100644 --- a/include/deal.II/base/hdf5.h +++ b/include/deal.II/base/hdf5.h @@ -110,17 +110,6 @@ DEAL_II_NAMESPACE_OPEN namespace HDF5 { - namespace internal - { - // This function gives the HDF5 datatype corresponding to the C++ type. In - // the case of std::complex types the HDF5 handlers are automatically freed - // using the destructor of std::shared_ptr. - template - std::shared_ptr - get_hdf5_datatype(); - } // namespace internal - - /** * General class for the HDF5 objects. * @@ -199,7 +188,21 @@ namespace HDF5 public: /** - * Writes data in the dataset. T can be double, int, unsigned int, bool + * Reads data of the dataset. T can be double, int, unsigned int, bool + * or std::complex. + * + * Datatype conversion takes place at the time of a read or write and is + * automatic. See the "Data + * Transfer: Datatype Conversion and Selection" section in the HDF5 + * User's Guide. + */ + template