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

Method GetCompositeIndex

Common/DataModel/vtkPartitionedDataSetCollection.cxx:213–227  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

211
212//------------------------------------------------------------------------------
213unsigned int vtkPartitionedDataSetCollection::GetCompositeIndex(unsigned int idx) const
214{
215 if (idx >= this->GetNumberOfPartitionedDataSets())
216 {
217 vtkLogF(ERROR, "invalid partition index '%u'", idx);
218 return 0;
219 }
220
221 unsigned int cid = 1;
222 for (unsigned int cc = 0; cc < idx; ++cc)
223 {
224 cid += 1 + this->GetNumberOfPartitions(cc);
225 }
226 return cid;
227}
228
229//------------------------------------------------------------------------------
230unsigned int vtkPartitionedDataSetCollection::GetCompositeIndex(

Callers 2

Calls 2

GetNumberOfPartitionsMethod · 0.95

Tested by 1