KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
hdf5_utils.h File Reference
#include <highfive/H5DataSet.hpp>
#include <highfive/H5DataSpace.hpp>
#include <highfive/H5File.hpp>
#include <highfive/H5FileDriver.hpp>
#include <highfive/H5Group.hpp>
#include "mpi_utils.h"
Include dependency graph for hdf5_utils.h:

Go to the source code of this file.

Macros

#define DUMP(pfile, data, size)   hdump(pfile, #data, data, size)
 
#define LOAD(pfile, data, size)   hload(pfile, #data, data, size)
 

Functions

template<typename T >
int hdump (HighFive::File *pfile, const std::string &name, T *data, const std::size_t &size)
 
template<typename T >
int hload (HighFive::File *pfile, const std::string &name, T *data, const std::size_t &size)
 
template<typename T >
int hdump_extend (HighFive::File *pfile, const std::string &name, T *data, const std::size_t &size, const int &DIM0, const int &rank)
 
template<typename T >
int hload_extend (HighFive::File *pfile, const std::string &name, T *data, const std::size_t &size, const int &DIM0, const int &rank)
 

Macro Definition Documentation

◆ DUMP

#define DUMP ( pfile,
data,
size )   hdump(pfile, #data, data, size)

Definition at line 12 of file hdf5_utils.h.

◆ LOAD

#define LOAD ( pfile,
data,
size )   hload(pfile, #data, data, size)

Definition at line 14 of file hdf5_utils.h.

Function Documentation

◆ hdump()

template<typename T >
int hdump ( HighFive::File * pfile,
const std::string & name,
T * data,
const std::size_t & size )

Definition at line 19 of file hdf5_utils.h.

References mpi_nprocs, and mpi_rank.

◆ hdump_extend()

template<typename T >
int hdump_extend ( HighFive::File * pfile,
const std::string & name,
T * data,
const std::size_t & size,
const int & DIM0,
const int & rank )

Definition at line 47 of file hdf5_utils.h.

◆ hload()

template<typename T >
int hload ( HighFive::File * pfile,
const std::string & name,
T * data,
const std::size_t & size )

Definition at line 32 of file hdf5_utils.h.

References mpi_nprocs, and mpi_rank.

◆ hload_extend()

template<typename T >
int hload_extend ( HighFive::File * pfile,
const std::string & name,
T * data,
const std::size_t & size,
const int & DIM0,
const int & rank )

Definition at line 61 of file hdf5_utils.h.