Reference documentation for deal.II version 9.2.0
|
#include <deal.II/base/hdf5.h>
Public Types | |
enum | FileAccessMode { FileAccessMode::open, FileAccessMode::create } |
Public Member Functions | |
File (const std::string &name, const FileAccessMode mode) | |
File (const std::string &name, const FileAccessMode mode, const MPI_Comm mpi_communicator) | |
Public Member Functions inherited from HDF5::Group | |
Group | open_group (const std::string &name) const |
Group | create_group (const std::string &name) const |
DataSet | open_dataset (const std::string &name) const |
template<typename number > | |
DataSet | create_dataset (const std::string &name, const std::vector< hsize_t > &dimensions) const |
template<typename Container > | |
void | write_dataset (const std::string &name, const Container &data) const |
Public Member Functions inherited from HDF5::HDF5Object | |
template<typename T > | |
T | get_attribute (const std::string &attr_name) const |
template<typename T > | |
void | set_attribute (const std::string &attr_name, const T value) |
std::string | get_name () const |
template<> | |
bool | get_attribute (const std::string &attr_name) const |
template<> | |
void | set_attribute (const std::string &attr_name, const std::string value) |
Private Member Functions | |
File (const std::string &name, const FileAccessMode mode, const bool mpi, const MPI_Comm mpi_communicator) | |
Additional Inherited Members | |
Protected Types inherited from HDF5::Group | |
enum | GroupAccessMode { GroupAccessMode::open, GroupAccessMode::create } |
Protected Member Functions inherited from HDF5::Group | |
Group (const std::string &name, const Group &parent_group, const bool mpi, const GroupAccessMode mode) | |
Group (const std::string &name, const bool mpi) | |
Protected Member Functions inherited from HDF5::HDF5Object | |
HDF5Object (const std::string &name, const bool mpi) | |
Protected Attributes inherited from HDF5::HDF5Object | |
const std::string | name |
std::shared_ptr< hid_t > | hdf5_reference |
const bool | mpi |
|
strong |
HDF5::File::File | ( | const std::string & | name, |
const FileAccessMode | mode | ||
) |
HDF5::File::File | ( | const std::string & | name, |
const FileAccessMode | mode, | ||
const MPI_Comm | mpi_communicator | ||
) |
Creates or opens an HDF5 file in parallel using MPI. This requires that deal.II and HDF5 were compiled with MPI support. It creates or opens a HDF5 file depending on the value of mode
. mpi_communicator
defines the processes that participate in this call; MPI_COMM_WORLD
is a common value for the MPI communicator.
|
private |