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

Function SetArrayValues

Filters/ParallelMPI/vtkHyperTreeGridRedistribute.cxx:125–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void SetArrayValues(vtkHyperTreeGridNonOrientedCursor* cursor, vtkAbstractArray* sourceArray,
126 vtkAbstractArray* destArray, int& recvReadOffset)
127{
128 if (cursor->IsMasked())
129 {
130 return;
131 }
132
133 destArray->SetTuple(cursor->GetGlobalNodeIndex(), recvReadOffset++, sourceArray);
134 if (!cursor->IsLeaf())
135 {
136 for (int ichild = 0; ichild < cursor->GetNumberOfChildren(); ++ichild)
137 {
138 cursor->ToChild(ichild);
139 SetArrayValues(cursor, sourceArray, destArray, recvReadOffset);
140 cursor->ToParent();
141 }
142 }
143}
144
145void CopyArrayValues(vtkHyperTreeGridNonOrientedCursor* inCursor,
146 vtkHyperTreeGridNonOrientedCursor* outCursor, vtkBitArray* outMask, vtkAbstractArray* sourceArray,

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