------------------------------------------------------------------------------
| 196 | |
| 197 | //------------------------------------------------------------------------------ |
| 198 | void vtkStructuredAMRGridConnectivity::SetNumberOfGrids(unsigned int N) |
| 199 | { |
| 200 | if (N == 0) |
| 201 | { |
| 202 | vtkErrorMacro("Number of grids cannot be 0."); |
| 203 | return; |
| 204 | } |
| 205 | this->NumberOfGrids = N; |
| 206 | this->AllocateUserRegisterDataStructures(); |
| 207 | |
| 208 | this->GridExtents.resize(6 * N); |
| 209 | this->GridLevels.resize(N); |
| 210 | this->Neighbors.resize(N); |
| 211 | this->BlockTopology.resize(N); |
| 212 | |
| 213 | if (!this->HasConstantRefinementRatio()) |
| 214 | { |
| 215 | this->RefinementRatios.resize(this->NumberOfLevels, -1); |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | //------------------------------------------------------------------------------ |
| 220 | void vtkStructuredAMRGridConnectivity::SetBlockTopology(int gridID) |
no test coverage detected