41 #ifndef VTKABSTRACTGRIDCONNECTIVITY_H_
42 #define VTKABSTRACTGRIDCONNECTIVITY_H_
109 vtkPointData* GetGhostedGridPointData(
const int gridID );
115 vtkCellData* GetGhostedGridCellData(
const int gridID );
121 vtkPoints* GetGhostedPoints(
const int gridID );
137 void RegisterGridGhostArrays(
144 void RegisterFieldData(
150 void RegisterGridNodes(
const int gridID,
vtkPoints *nodes );
156 void AllocateUserRegisterDataStructures();
157 void DeAllocateUserRegisterDataStructures();
163 void AllocateInternalDataStructures();
164 void DeAllocateInternalDataStructures();
203 assert(
"pre: GridID is out-of-bound GridPointData" &&
204 (gridID >= 0) && (gridID <
static_cast<int>(this->
NumberOfGrids) ) );
205 assert(
"pre: Ghosted point ghost array" &&
220 assert(
"pre: GridID is out-of-bound GridPointData" &&
221 (gridID >= 0) && (gridID <
static_cast<int>(this->
NumberOfGrids)));
222 assert(
"pre: Ghosted point ghost array" &&
237 assert(
"pre: GridID is out-of-bound GridPointData" &&
238 (gridID >= 0) && (gridID <
static_cast<int>(this->
NumberOfGrids)));
239 assert(
"pre: Ghosted point ghost array" &&
254 assert(
"pre: GridID is out-of-bound GridPointData" &&
255 (gridID >= 0) && (gridID <
static_cast<int>(this->
NumberOfGrids)));
256 assert(
"pre: Ghosted point ghost array" &&
271 assert(
"pre: GridID is out-of-bound GridPointData" &&
272 (gridID >= 0) && (gridID <
static_cast<int>(this->
NumberOfGrids)));
273 assert(
"pre: Ghosted point ghost array" &&
284 assert(
"pre: Allocating UserRegister for N > 0 grids" &&
298 assert(
"pre: Data-structure has not been properly allocated" &&
300 assert(
"pre: Data-structure has not been properly allocated" &&
302 assert(
"pre: Data-structure has not been properly allocated" &&
304 assert(
"pre: Data-structure has not been properly allocated" &&
306 assert(
"pre: Data-structure has not been properly allocated" &&
307 (this->
GridPoints.size() == this->NumberOfGrids ) );
346 assert(
"pre: Allocating Internal data-structured for N > 0 grids" &&
366 assert(
"pre: Data-structure has not been properly allocated" &&
368 assert(
"pre: Data-structure has not been properly allocated" &&
370 assert(
"pre: Data-structure has not been properly allocated" &&
372 assert(
"pre: Data-structure has not been properly allocated" &&
374 assert(
"pre: Data-structure has not been properly allocated" &&
417 assert(
"pre: GridID is out-of-bound GridPointData" &&
418 (gridID >= 0) && (gridID <
static_cast<int>(this->
NumberOfGrids)));
419 assert(
"pre: GridPointGhostArrays has not been allocated" &&
421 assert(
"pre: GridCellGhostArrays has not been allocated" &&
434 assert(
"pre: GridID is out-of-bound GridPointData" &&
435 (gridID >= 0) && (gridID <
static_cast<int>(this->
NumberOfGrids)));
436 assert(
"pre: GridPointData has not been allocated!" &&
438 assert(
"pre: GridCellData has not been allocated!" &&
442 if( PointData != NULL )
444 assert(
"pre: GridPointData[gridID] must be NULL" &&
454 if( CellData != NULL )
456 assert(
"pre: GridCellData[gridID] must be NULL" &&
472 assert(
"pre: GridID is out-of-bound GridPointData" &&
473 (gridID >= 0) && (gridID <
static_cast<int>(this->
NumberOfGrids)));
474 assert(
"pre: GridPoints has not been allocated!" &&
475 (this->
GridPoints.size() == this->NumberOfGrids) );
479 assert(
"pre:GridPoints[gridID] must be NULL" &&
482 this->
GridPoints[ gridID ]->SetDataTypeToDouble();
483 this->
GridPoints[ gridID ]->ShallowCopy( nodes );