NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ reset_tstp()

template<typename T >
void cntr::distributed_timestep_array< T >::reset_tstp ( int  tstp)

Reset the data to new timestep of herm_matrix_timestep

Purpose

Reset the data to new timestep which includes the change in the size and setting to the data at t* he given timestep

Parameters
tstp

New timestep to which the data is reset

Definition at line 120 of file cntr_distributed_timestep_array_impl.hpp.

120  {
121  assert(-1<=tstp && -1<=nt_);
122  int blocksize=(ntau_+1+2*(tstp+1))*size_*size_;
123  tstp_=tstp;
124  data_.reset_blocksize(blocksize);
125  for(int j=0;j<n_;j++) G_[j].set_to_data(data_.block(j),tstp_,ntau_,size_,sig_);
126 }
T * block(int j)
Returns the pointer to block j.
void reset_blocksize(int blocksize)
Reset the block size for each block.