------------------------------------------------------------------------------
| 131 | |
| 132 | //------------------------------------------------------------------------------ |
| 133 | vtkIdType vtkDistributedGraphHelper::MakeDistributedId(int owner, vtkIdType local) |
| 134 | { |
| 135 | int numProcs = this->Graph->GetInformation()->Get(vtkDataObject::DATA_NUMBER_OF_PIECES()); |
| 136 | |
| 137 | if (numProcs > 1) |
| 138 | { |
| 139 | assert(owner >= 0 && owner < numProcs); |
| 140 | return (static_cast<vtkIdType>(owner) << this->indexBits) | local; |
| 141 | } |
| 142 | |
| 143 | return local; |
| 144 | } |
| 145 | |
| 146 | //------------------------------------------------------------------------------ |
| 147 | void vtkDistributedGraphHelper::AttachToGraph(vtkGraph* graph) |
no test coverage detected