------------------------------------------------------------------------------
| 1571 | |
| 1572 | //------------------------------------------------------------------------------ |
| 1573 | void 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 | //------------------------------------------------------------------------------ |
| 1597 | void vtkStructuredAMRGridConnectivity::RegisterGrid(int gridIdx, int level, int refinementRatio, |
no test coverage detected