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

Function SetMaskValues

Filters/ParallelMPI/vtkHyperTreeGridRedistribute.cxx:103–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void SetMaskValues(vtkHyperTreeGridNonOrientedCursor* cursor, vtkBitArray* maskBuffer,
104 vtkBitArray* destMask, int& offset)
105{
106 bool maskValue = maskBuffer->GetValue(offset++);
107 destMask->InsertValue(cursor->GetGlobalNodeIndex(), maskValue);
108
109 if (maskValue)
110 {
111 return;
112 }
113
114 if (!cursor->IsLeaf())
115 {
116 for (int ichild = 0; ichild < cursor->GetNumberOfChildren(); ++ichild)
117 {
118 cursor->ToChild(ichild);
119 ::SetMaskValues(cursor, maskBuffer, destMask, offset);
120 cursor->ToParent();
121 }
122 }
123}
124
125void SetArrayValues(vtkHyperTreeGridNonOrientedCursor* cursor, vtkAbstractArray* sourceArray,
126 vtkAbstractArray* destArray, int& recvReadOffset)

Callers 1

ExchangeMaskMethod · 0.85

Calls 7

GetValueMethod · 0.45
InsertValueMethod · 0.45
GetGlobalNodeIndexMethod · 0.45
IsLeafMethod · 0.45
GetNumberOfChildrenMethod · 0.45
ToChildMethod · 0.45
ToParentMethod · 0.45

Tested by

no test coverage detected