NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ firstblock_rank()

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

Return first blocks on rank.

Purpose

Return first blocks on rank.

Definition at line 247 of file cntr_distributed_array_impl.hpp.

247  {
248  int rank_firstblock=0;
249 
250  for(int i=0;i<n_;i++){
251  if(tid_map_[i]==tid_){
252  rank_firstblock=i;
253  break;
254  }
255  }
256  return rank_firstblock;
257 }