------------------------------------------------------------------------------
| 211 | |
| 212 | //------------------------------------------------------------------------------ |
| 213 | unsigned 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 | //------------------------------------------------------------------------------ |
| 230 | unsigned int vtkPartitionedDataSetCollection::GetCompositeIndex( |