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
4
#include "
MeshLib/IO/XDMF/fileIO.h
"
5
6
#include <hdf5.h>
7
namespace
MeshLib::IO
8
{
9
int64_t
createFile
(std::filesystem::path
const
& filepath,
unsigned
int
)
10
{
11
return
H5Fcreate(filepath.string().c_str(), H5F_ACC_TRUNC, H5P_DEFAULT,
12
H5P_DEFAULT);
13
}
14
15
int64_t
openHDF5File
(std::filesystem::path
const
& filepath)
16
{
17
return
H5Fopen(filepath.string().c_str(), H5F_ACC_RDWR, H5P_DEFAULT);
18
}
19
20
int64_t
createHDF5TransferPolicy
()
21
{
22
return
H5P_DEFAULT;
23
}
24
}
// namespace MeshLib::IO
fileIO.h
MeshLib::IO
Definition
MeshIO.cpp:262
MeshLib::IO::createHDF5TransferPolicy
int64_t createHDF5TransferPolicy()
Definition
mpi/fileIO.cpp:60
MeshLib::IO::openHDF5File
int64_t openHDF5File(std::filesystem::path const &filepath, unsigned int n_files)
Definition
mpi/fileIO.cpp:48
MeshLib::IO::createFile
int64_t createFile(std::filesystem::path const &filepath, unsigned int n_files)
Definition
mpi/fileIO.cpp:28
MeshLib
IO
XDMF
posix
fileIO.cpp
Generated by
1.14.0