------------------------------------------------------------------------------
| 64 | |
| 65 | //------------------------------------------------------------------------------ |
| 66 | int vtkDIYExplicitAssigner::rank(int gid) const |
| 67 | { |
| 68 | auto iter = |
| 69 | std::lower_bound(this->IScanBlockCounts.begin(), this->IScanBlockCounts.end(), gid + 1); |
| 70 | assert(iter != this->IScanBlockCounts.end()); |
| 71 | return static_cast<int>(std::distance(this->IScanBlockCounts.begin(), iter)); |
| 72 | } |
| 73 | |
| 74 | //------------------------------------------------------------------------------ |
| 75 | void vtkDIYExplicitAssigner::local_gids(int rank, std::vector<int>& gids) const |