MCPcopy Create free account
hub / github.com/Kitware/VTK / GetEdgeIndex

Method GetEdgeIndex

Common/DataModel/vtkDistributedGraphHelper.cxx:118–130  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

116
117//------------------------------------------------------------------------------
118vtkIdType 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//------------------------------------------------------------------------------
133vtkIdType vtkDistributedGraphHelper::MakeDistributedId(int owner, vtkIdType local)

Callers 9

GetSourceVertexMethod · 0.80
GetTargetVertexMethod · 0.80
SetEdgePointsMethod · 0.80
GetEdgePointsMethod · 0.80
GetNumberOfEdgePointsMethod · 0.80
GetEdgePointMethod · 0.80
SetEdgePointMethod · 0.80
ClearEdgePointsMethod · 0.80
AddEdgePointMethod · 0.80

Calls 2

GetMethod · 0.45
GetInformationMethod · 0.45

Tested by

no test coverage detected