NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ numblock_rank()

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

Return number of blocks on rank.

Purpose

Return number of blocks on rank.

Definition at line 223 of file cntr_distributed_array_impl.hpp.

223  {
224  int rank_totblock=0;
225 
226  for(int i=0;i<n_;i++){
227  if(tid_map_[i]==tid_){
228  rank_totblock+=1;
229  }
230  }
231 
232  return rank_totblock;
233 }