NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ mpi_gather() [2/2]

template<typename T >
void cntr::distributed_array< T >::mpi_gather ( int  dest)

MPI gather for the distributed array

Purpose

MPI gather equivalent for the distributed array, where we gather the data on rank dest

Parameters
dest

Index of the MPI rank (=tid_ of the block) receiving the data

Definition at line 326 of file cntr_distributed_array_impl.hpp.

326  {
327  assert(0<=dest && 0<=ntasks_-1);
328  for(int j=0;j<n_;j++) mpi_send_block(j,dest);
329 }
void mpi_send_block(int j, int dest)
Sends the j-th block to the MPI rank dest