OGS
fileIO.cpp
Go to the documentation of this file.
1
15
16#include <hdf5.h>
17namespace MeshLib::IO
18{
19int64_t createFile(std::filesystem::path const& filepath, unsigned int)
20{
21 return H5Fcreate(filepath.string().c_str(), H5F_ACC_TRUNC, H5P_DEFAULT,
22 H5P_DEFAULT);
23}
24
25int64_t openHDF5File(std::filesystem::path const& filepath)
26{
27 return H5Fopen(filepath.string().c_str(), H5F_ACC_RDWR, H5P_DEFAULT);
28}
29
31{
32 return H5P_DEFAULT;
33}
34} // namespace MeshLib::IO
Dispatches HDF5 functions specific to execution platform (w/o MPI). There are multiple implementation...
int64_t createHDF5TransferPolicy()
Definition fileIO.cpp:70
int64_t openHDF5File(std::filesystem::path const &filepath, unsigned int n_files)
Definition fileIO.cpp:58
int64_t createFile(std::filesystem::path const &filepath, unsigned int n_files)
Definition fileIO.cpp:38