OGS
posix/fileIO.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
5
6#include <hdf5.h>
7namespace MeshLib::IO
8{
9int64_t createFile(std::filesystem::path const& filepath,
10 unsigned int /*n_files*/)
11{
12 return H5Fcreate(filepath.string().c_str(), H5F_ACC_TRUNC, H5P_DEFAULT,
13 H5P_DEFAULT);
14}
15
16int64_t openHDF5File(std::filesystem::path const& filepath)
17{
18 return H5Fopen(filepath.string().c_str(), H5F_ACC_RDWR, H5P_DEFAULT);
19}
20
22{
23 return H5P_DEFAULT;
24}
25} // namespace MeshLib::IO
int64_t createHDF5TransferPolicy()
int64_t openHDF5File(std::filesystem::path const &filepath, unsigned int n_files)
int64_t createFile(std::filesystem::path const &filepath, unsigned int n_files)