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

Method CollectLocalTreeIds

Filters/ParallelMPI/vtkHyperTreeGridRedistribute.cxx:608–627  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

606
607//------------------------------------------------------------------------------
608void vtkHyperTreeGridRedistribute::CollectLocalTreeIds()
609{
610 vtkNew<vtkHyperTreeGridNonOrientedCursor> cursor;
611 vtkHyperTreeGrid::vtkHyperTreeGridIterator inputIterator;
612 vtkIdType inTreeIndex = 0;
613 this->InputHTG->InitializeTreeIterator(inputIterator);
614
615 vtkIdType numLocalTrees = this->InputHTG->GetNumberOfNonEmptyTrees();
616 this->LocalTreeIds.resize(numLocalTrees);
617
618 vtkIdType treeCount = 0;
619 while (inputIterator.GetNextTree(inTreeIndex))
620 {
621 this->InputHTG->InitializeNonOrientedCursor(cursor, inTreeIndex);
622 if (cursor->HasTree())
623 {
624 this->LocalTreeIds[treeCount++] = inTreeIndex;
625 }
626 }
627}
628//------------------------------------------------------------------------------
629void vtkHyperTreeGridRedistribute::BuildTargetPartMap()
630{

Callers 1

ProcessTreesMethod · 0.95

Calls 6

GetNextTreeMethod · 0.80
resizeMethod · 0.45
HasTreeMethod · 0.45

Tested by

no test coverage detected