NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ read_from_hdf5() [4/6]

template<typename T >
void cntr::herm_matrix< T >::read_from_hdf5 ( int  nt1,
hid_t  group_id 
)

Reads the herm_matrix up to a given number of time steps from an HDF5 group.

Purpose

Reads the herm_matrix, including the matrix size, number of points on real and imaginary axis and fermionic/bosonic character, from a given HDF5 group handle. The herm_matrix is read up to a given number of time steps nt1.

Parameters
nt1

Read up to this time step.

group_id

The HDF5 group handle.

Definition at line 1762 of file cntr_herm_matrix_impl.hpp.

1762  {
1763  herm_matrix<T> gtmp;
1764  gtmp.read_from_hdf5(group_id);
1765 
1766  assert(nt1 >= -1 && nt1 <= gtmp.nt() && "nt1 >= -1 && nt1 <= gtmp.nt()");
1767  assert(nt1 >= -1 && nt1 <= nt_ && "nt1 >= -1 && nt1 <= nt_");
1768  assert(gtmp.size1() == size1_ && "gtmp.size1() == size1_");
1769  assert(gtmp.element_size() == element_size_ && "gtmp.element_size() == element_size_");
1770  assert(gtmp.ntau() == ntau_ && "gtmp.ntau() == ntau_");
1771 
1772  for (int n = -1; n <= nt1; n++)
1773  this->set_timestep(n, gtmp);
1774 }