------------------------------------------------------------------------------
| 116 | |
| 117 | //------------------------------------------------------------------------------ |
| 118 | vtkIdType vtkDistributedGraphHelper::GetEdgeIndex(vtkIdType e_id) const |
| 119 | { |
| 120 | vtkIdType index = e_id; |
| 121 | int numProcs = this->Graph->GetInformation()->Get(vtkDataObject::DATA_NUMBER_OF_PIECES()); |
| 122 | |
| 123 | if (numProcs > 1) |
| 124 | { |
| 125 | // Shift off the Owner bits. (Would a mask be faster?) |
| 126 | index = (e_id << this->procBits) >> this->procBits; |
| 127 | } |
| 128 | |
| 129 | return index; |
| 130 | } |
| 131 | |
| 132 | //------------------------------------------------------------------------------ |
| 133 | vtkIdType vtkDistributedGraphHelper::MakeDistributedId(int owner, vtkIdType local) |
no test coverage detected