Acoustic FDTD Solver
|
#include "H5.hpp"
Functions | |
void | writeToH5File (const std::string &file_name, const std::string &dataset_name, const std::vector< double > &data, const std::string &mode) |
void | writeToH5File (const std::string &file_name, const std::string &dataset_name, const std::vector< std::vector< double > > &data, const std::string &mode) |
void | writeToH5File (const std::string &file_name, const std::string &dataset_name, const double *const *data, const unsigned nJ, const unsigned nK, const std::string &mode) |
This declearation of the data ensures that, even if data does not take a contiguous memeory space, data is writen to the H5 file. | |
void | readAttributeFromH5File (unsigned out, const std::string &file_name, const std::string &group_name, const std::string &attribute_name) |
std::vector< std::vector < double > > | readFromH5File (const std::string &file_name, const std::string &dataset_name) |
void readAttributeFromH5File | ( | unsigned | out, |
const std::string & | file_name, | ||
const std::string & | group_name, | ||
const std::string & | attribute_name | ||
) |
std::vector<std::vector<double> > readFromH5File | ( | const std::string & | file_name, |
const std::string & | dataset_name | ||
) |
void writeToH5File | ( | const std::string & | file_name, |
const std::string & | dataset_name, | ||
const std::vector< double > & | data, | ||
const std::string & | mode = "overwrite" |
||
) |
file_name | |
dataset_name | |
data | |
mode | either "overwrite" or "append" |
void writeToH5File | ( | const std::string & | file_name, |
const std::string & | dataset_name, | ||
const std::vector< std::vector< double > > & | data, | ||
const std::string & | mode | ||
) |
void writeToH5File | ( | const std::string & | file_name, |
const std::string & | dataset_name, | ||
const double *const * | data, | ||
const unsigned | nJ, | ||
const unsigned | nK, | ||
const std::string & | mode | ||
) |
This declearation of the data ensures that, even if data does not take a contiguous memeory space, data is writen to the H5 file.