NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ set_timestep_zero()

template<typename T >
void cntr::herm_matrix_timestep< T >::set_timestep_zero ( int  tstp)

Sets all components at time step tstp to zero.

Purpose

Sets all components of the herm_matrix_timestep to zero. If tstp = -1, only the Matsubara component will be set to zero.

Parameters
tstp

The time step at which the components are set to zero. Dummy argument in release mode.

Definition at line 329 of file cntr_herm_matrix_timestep_impl.hpp.

329  {
330  assert(tstp == tstp_);
331  assert(tstp >= -1);
332  if (tstp == -1) {
333  memset(matptr(0), 0, sizeof(cplx) * (ntau_ + 1) * element_size_);
334  } else {
335  memset(retptr(0), 0, sizeof(cplx) * (tstp + 1) * element_size_);
336  memset(tvptr(0), 0, sizeof(cplx) * (ntau_ + 1) * element_size_);
337  memset(lesptr(0), 0, sizeof(cplx) * (tstp + 1) * element_size_);
338  }
339 }