------------------------------------------------------------------------------
| 285 | |
| 286 | //------------------------------------------------------------------------------ |
| 287 | void vtkStructuredAMRGridConnectivity::GetGhostedExtent(int gridID, int ext[6]) |
| 288 | { |
| 289 | assert("pre: grid ID is out-of-bounds!" && (gridID >= 0) && |
| 290 | (gridID < static_cast<int>(this->NumberOfGrids))); |
| 291 | assert("pre: ghosted-extents vector has not been allocated" && |
| 292 | (this->NumberOfGrids == this->GhostedExtents.size() / 6)); |
| 293 | assert("pre: Number of ghost layers should not be 0" && (this->NumberOfGhostLayers > 0)); |
| 294 | |
| 295 | for (int i = 0; i < 6; ++i) |
| 296 | { |
| 297 | ext[i] = this->GhostedExtents[gridID * 6 + i]; |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | //------------------------------------------------------------------------------ |
| 302 | void vtkStructuredAMRGridConnectivity::SetGhostedExtent(int gridID, int ext[6]) |
no test coverage detected