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,
10
unsigned
int
/*n_files*/
)
11
{
12
return
H5Fcreate(filepath.string().c_str(), H5F_ACC_TRUNC, H5P_DEFAULT,
13
H5P_DEFAULT);
14
}
15
16
int64_t
openHDF5File
(std::filesystem::path
const
& filepath)
17
{
18
return
H5Fopen(filepath.string().c_str(), H5F_ACC_RDWR, H5P_DEFAULT);
19
}
20
21
int64_t
createHDF5TransferPolicy
()
22
{
23
return
H5P_DEFAULT;
24
}
25
}
// 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