NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ Reduce_timestep()

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

MPI reduce for the herm_matrix_timestep_view.

Purpose

MPI reduce for the herm_matrix_timestep_view to the root If \(t>-1\) then ret,les,tv components are set, otherwise mat. Works for scalar or square-matrix contour objects.

Parameters
tstp

Time step which should be reduced.

root

Index of root

Definition at line 1680 of file cntr_herm_matrix_timestep_view_impl.hpp.

1680  {
1681  assert(tstp == tstp_);
1682  if (tstp_ == -1) {
1683  my_mpi_reduce<T>(mat_, (ntau_ + 1) * element_size_, root);
1684  } else {
1685  my_mpi_reduce<T>(les_, (tstp_ + 1) * element_size_, root);
1686  my_mpi_reduce<T>(ret_, (tstp_ + 1) * element_size_, root);
1687  my_mpi_reduce<T>(tv_, (ntau_ + 1) * element_size_, root);
1688  }
1689 }