NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ write_to_hdf5() [3/3]

template<typename T >
void cntr::function< T >::write_to_hdf5 ( const char *  filename,
const char *  groupname 
) const

Write the function data to a hdf5 file

Purpose

Write the function data to a hdf5 file. Four parameters: nt, size1, size2 and element_size are stored. data array is stored as complex numbers. The data is stored to a file with given name and under a specified group name.

Parameters
filename

the name of the file in which the function would be stored

groupname

the specified (sub)group name of stored function

Definition at line 901 of file cntr_function_impl.hpp.

902  {
903  hid_t file_id = open_hdf5_file(filename);
904  this->write_to_hdf5(file_id, groupname);
905  close_hdf5_file(file_id);
906 }
void write_to_hdf5(hid_t group_id) const
Write the function data to a hdf5 file