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

Function CollectArray

Filters/ParallelMPI/vtkHyperTreeGridRedistribute.cxx:62–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void CollectArray(vtkHyperTreeGridNonOrientedCursor* cursor, vtkAbstractArray* arraySource,
63 vtkAbstractArray* arrayDest, int& count)
64{
65 if (cursor->IsMasked())
66 {
67 return;
68 }
69
70 arrayDest->SetTuple(count++, cursor->GetGlobalNodeIndex(), arraySource);
71
72 if (!cursor->IsLeaf())
73 {
74 for (int ichild = 0; ichild < cursor->GetNumberOfChildren(); ++ichild)
75 {
76 cursor->ToChild(ichild);
77 ::CollectArray(cursor, arraySource, arrayDest, count);
78 cursor->ToParent();
79 }
80 }
81}
82
83void CollectMask(vtkHyperTreeGridNonOrientedCursor* cursor, vtkBitArray* maskBuffer, int& offset)
84{

Callers 1

ExchangeCellArrayMethod · 0.85

Calls 7

IsMaskedMethod · 0.45
SetTupleMethod · 0.45
GetGlobalNodeIndexMethod · 0.45
IsLeafMethod · 0.45
GetNumberOfChildrenMethod · 0.45
ToChildMethod · 0.45
ToParentMethod · 0.45

Tested by

no test coverage detected