------------------------------------------------------------------------------
| 74 | |
| 75 | //------------------------------------------------------------------------------ |
| 76 | vtkIdType vtkDistributedGraphHelper::GetVertexIndex(vtkIdType v) const |
| 77 | { |
| 78 | vtkIdType index = v; |
| 79 | int numProcs = this->Graph->GetInformation()->Get(vtkDataObject::DATA_NUMBER_OF_PIECES()); |
| 80 | |
| 81 | if (numProcs > 1) |
| 82 | { |
| 83 | // Shift off the Owner bits. (Would a mask be faster?) |
| 84 | index = (v << this->procBits) >> this->procBits; |
| 85 | } |
| 86 | |
| 87 | return index; |
| 88 | } |
| 89 | |
| 90 | //------------------------------------------------------------------------------ |
| 91 | vtkIdType vtkDistributedGraphHelper::GetEdgeOwner(vtkIdType e_id) const |
no test coverage detected