NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ Reduce_timestep()

template<typename T >
void cntr::herm_matrix< T >::Reduce_timestep ( int  tstp,
int  root 
)

MPI reduce for the herm_matrix at a given time step.

Purpose

MPI reduce for the herm_matrix to the root at a given time step. Works for scalar or square-matrix contour objects.

Parameters
tstp

time step

root

Index of root

Definition at line 3442 of file cntr_herm_matrix_impl.hpp.

3442  {
3443  assert(tstp <= nt_);
3444 
3445  herm_matrix_timestep<T> Gtemp;
3446  Gtemp.resize(tstp, ntau_, size1_);
3447  this->get_timestep(tstp, Gtemp);
3448 
3449  Gtemp.Reduce_timestep(tstp, root);
3450 
3451  this->set_timestep(tstp, Gtemp);
3452 }
void get_timestep(int tstp, herm_matrix_timestep< T > &timestep) const
void set_timestep(int tstp, herm_matrix &g1)
Sets all components at time step tstp to the components of a given herm_matrix. ...