Acoustic FDTD Solver
Functions
H5.cpp File Reference
#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)

Function Documentation

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" 
)
Parameters
file_name
dataset_name
data
modeeither "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.