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

Method RegisterGrid

Filters/Geometry/vtkStructuredAMRGridConnectivity.cxx:1573–1594  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1571
1572//------------------------------------------------------------------------------
1573void vtkStructuredAMRGridConnectivity::RegisterGrid(int gridIdx, int level, int extents[6],
1574 vtkUnsignedCharArray* nodesGhostArray, vtkUnsignedCharArray* cellGhostArray,
1575 vtkPointData* pointData, vtkCellData* cellData, vtkPoints* gridNodes)
1576{
1577 assert("pre: level should be >= 0" && (level >= 0));
1578 assert("pre: Grid index is out-of-bounds!" &&
1579 ((gridIdx >= 0) && (gridIdx < static_cast<int>(this->NumberOfGrids))));
1580
1581 this->MaxLevel = std::max(level, this->MaxLevel);
1582
1583 this->GridLevels[gridIdx] = level;
1584 this->InsertGridAtLevel(level, gridIdx);
1585
1586 for (int i = 0; i < 6; ++i)
1587 {
1588 this->GridExtents[gridIdx * 6 + i] = extents[i];
1589 }
1590
1591 this->RegisterGridGhostArrays(gridIdx, nodesGhostArray, cellGhostArray);
1592 this->RegisterFieldData(gridIdx, pointData, cellData);
1593 this->RegisterGridNodes(gridIdx, gridNodes);
1594}
1595
1596//------------------------------------------------------------------------------
1597void vtkStructuredAMRGridConnectivity::RegisterGrid(int gridIdx, int level, int refinementRatio,

Callers 1

EstablishNeighborsMethod · 0.45

Calls 8

InsertGridAtLevelMethod · 0.95
RegisterFieldDataMethod · 0.80
RegisterGridNodesMethod · 0.80
assertFunction · 0.50
maxFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected