CartesianMPIHDF.h¶
-
template<typename
FileDataType
, typenameGrid
, typenameMesh
, typenameDir
= size_t>
voidCubism::IO
::
CartesianMPIWriteHDF
(const std::string &fname, const std::string &aname, const Grid &grid, const Mesh &mesh, const double time, const Dir face_dir = 0, const bool create_xdmf = true)¶ Write Cartesian MPI grid data to HDF file.
Write the data carried by the MPI
grid
to an HDF5 container file. The data that is written to the file is specified by the index space described inmesh
.- Template Parameters
FileDataType
: HDF file data typeGrid
: Grid typeMesh
: Mesh typeDir
: Special type that defines a cast tosize_t
- Parameters
fname
: Output full filename without file extensionaname
: Name of quantity ingrid
grid
: Input gridmesh
: Input mesh corresponding to the extracted datatime
: Current timeface_dir
: Face direction (relevant forCubism::EntityType::Face
)create_xdmf
: Flag for XDMF wrapper
-
template<typename
FileDataType
, typenameGrid
, typenameDir
= size_t>
voidCubism::IO
::
CartesianMPIWriteHDF
(const std::string &fname, const std::string &aname, const Grid &grid, const double time, const Dir face_dir = 0, const bool create_xdmf = true)¶ Write Cartesian MPI grid data to HDF file.
Convenience wrapper to dump a full MPI grid to an HDF container file.
- Template Parameters
FileDataType
: HDF file data typeGrid
: Grid typeDir
: Special type that defines a cast tosize_t
- Parameters
fname
: Output full filename without file extensionaname
: Name of quantity ingrid
grid
: Input gridtime
: Current timeface_dir
: Face direction (relevant forCubism::EntityType::Face
)create_xdmf
: Flag for XDMF wrapper
-
template<typename
FileDataType
, typenameGrid
, typenameMesh
, typenameDir
= size_t>
voidCubism::IO
::
CartesianMPIReadHDF
(const std::string &fname, Grid &grid, const Mesh &mesh, const Dir face_dir = 0)¶ Read Cartesian MPI grid data from HDF file.
Read the data of an HDF5 container file into the MPI
grid
. The data that is read from the file is specified by the index space described inmesh
.- Template Parameters
FileDataType
: HDF file data typeGrid
: Grid typeMesh
: Mesh typeDir
: Special type that defines a cast tosize_t
- Parameters
fname
: Input full filename without file extensiongrid
: Grid populated with file datamesh
: Grid (sub)meshface_dir
: Face direction (relevant forCubism::EntityType::Face
)
-
template<typename
FileDataType
, typenameGrid
, typenameDir
= size_t>
voidCubism::IO
::
CartesianMPIReadHDF
(const std::string &fname, Grid &grid, const Dir face_dir = 0)¶ Read Cartesian grid data from HDF file.
Convenience wrapper to read a full MPI grid from an HDF container file.
- Template Parameters
FileDataType
: HDF file data typeGrid
: Grid typeDir
: Special type that defines a cast tosize_t
- Parameters
fname
: Input full filename without file extensiongrid
: Grid populated with file dataface_dir
: Face direction (relevant forCubism::EntityType::Face
)