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

Function CopyArrayValues

Filters/ParallelMPI/vtkHyperTreeGridRedistribute.cxx:145–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void CopyArrayValues(vtkHyperTreeGridNonOrientedCursor* inCursor,
146 vtkHyperTreeGridNonOrientedCursor* outCursor, vtkBitArray* outMask, vtkAbstractArray* sourceArray,
147 vtkAbstractArray* destArray)
148{
149 outMask->InsertValue(outCursor->GetGlobalNodeIndex(), inCursor->IsMasked());
150
151 if (inCursor->IsMasked())
152 {
153 return;
154 }
155
156 destArray->SetTuple(outCursor->GetGlobalNodeIndex(), inCursor->GetGlobalNodeIndex(), sourceArray);
157
158 if (!inCursor->IsLeaf())
159 {
160 for (int ichild = 0; ichild < inCursor->GetNumberOfChildren(); ++ichild)
161 {
162 inCursor->ToChild(ichild);
163 outCursor->ToChild(ichild);
164
165 ::CopyArrayValues(inCursor, outCursor, outMask, sourceArray, destArray);
166
167 inCursor->ToParent();
168 outCursor->ToParent();
169 }
170 }
171}
172
173/**
174 * Get the number of bytes required to fit `nbBits`.

Callers 1

ExchangeCellArrayMethod · 0.85

Calls 8

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

Tested by

no test coverage detected