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

Method RegisterGridGhostArrays

Filters/Geometry/vtkAbstractGridConnectivity.h:409–423  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

407
408//------------------------------------------------------------------------------
409inline void vtkAbstractGridConnectivity::RegisterGridGhostArrays(
410 int gridID, vtkUnsignedCharArray* nodesArray, vtkUnsignedCharArray* cellsArray)
411{
412 // Sanity check
413 assert("pre: GridID is out-of-bound GridPointData" && (gridID >= 0) &&
414 (gridID < static_cast<int>(this->NumberOfGrids)));
415 assert("pre: GridPointGhostArrays has not been allocated" &&
416 (this->GridPointGhostArrays.size() == this->NumberOfGrids));
417 assert("pre: GridCellGhostArrays has not been allocated" &&
418 (this->GridCellGhostArrays.size() == this->NumberOfGrids));
419
420 // NOTE: We should really shallow copy the objects here
421 this->GridPointGhostArrays[gridID] = nodesArray;
422 this->GridCellGhostArrays[gridID] = cellsArray;
423}
424
425//------------------------------------------------------------------------------
426inline void vtkAbstractGridConnectivity::RegisterFieldData(

Callers 2

RegisterGridMethod · 0.80
RegisterGridMethod · 0.80

Calls 2

assertFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected