NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ write_to_hdf5() [1/3]

template<typename T >
void cntr::function< T >::write_to_hdf5 ( hid_t  group_id) 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.

Parameters
group_id

the group_id of the hdf5 data

Definition at line 840 of file cntr_function_impl.hpp.

840  {
841  store_int_attribute_to_hid(group_id, std::string("nt"), nt_);
842  store_int_attribute_to_hid(group_id, std::string("size1"), size1_);
843  store_int_attribute_to_hid(group_id, std::string("size2"), size2_);
844  store_int_attribute_to_hid(group_id, std::string("element_size"),
845  element_size_);
846  hsize_t len_shape = 3, shape[3];
847  shape[1] = size1_;
848  shape[2] = size2_;
849  if (nt_ > -2) {
850  shape[0] = nt_ + 2;
851  store_cplx_array_to_hid(group_id, std::string("data"), this->data_,
852  shape, len_shape);
853  }
854 }
int size2_
Number of the rows in the Matrix form.
cplx * data_
Pointer to the function in the Matrix form on the real-time axis ( ) ; &#39;data_+ element_size&#39; corresp...
int size1_
Number of the colums in the Matrix form.
int nt_
Maximum number of the time steps.