59#ifndef vtkDIYGhostUtilities_h
60#define vtkDIYGhostUtilities_h
67#include "vtkParallelDIYModule.h"
74#include <unordered_map>
79#include VTK_DIY2(diy/assigner.hpp)
80#include VTK_DIY2(diy/master.hpp)
81#include VTK_DIY2(diy/partners/all-reduce.hpp)
84VTK_ABI_NAMESPACE_BEGIN
127 template <
class DataSetT>
231 const double spacing[3],
const double orientationQuaternion[4]);
233 const double spacing[3],
vtkMatrix3x3* directionMatrix);
730 std::unordered_map<int, std::unordered_map<vtkIdType, vtkIdType>>
732 std::unordered_map<int, std::unordered_map<vtkIdType, vtkNew<vtkIdTypeArray>>>
734 std::unordered_map<int, std::unordered_map<vtkIdType, vtkNew<vtkIdTypeArray>>>
747 template <
class BlockStructureT,
class InformationT>
811 template <
class DataSetT>
822 std::vector<vtkImageData*>& outputs,
int outputGhostLevels,
825 std::vector<vtkRectilinearGrid*>& outputs,
int outputGhostLevels,
828 std::vector<vtkStructuredGrid*>& outputs,
int outputGhostLevels,
831 std::vector<vtkPolyData*>& outputs,
int outputGhostLevels,
834 std::vector<vtkUnstructuredGrid*>& outputs,
int outputGhostLevels,
847 static void CloneInputData(std::vector<vtkDataSet*>& inputs, std::vector<vtkDataSet*>& outputs,
848 bool syncCell,
bool syncPoint);
857 diy::Master& master, std::vector<vtkDataSet*>& inputs,
bool syncCell,
bool syncPoint);
859 diy::Master& master, std::vector<vtkDataSet*>& inputs,
int fieldType,
unsigned char ghostFlag);
879 const diy::Master& master,
bool syncCell,
bool syncPoint);
881 Links& links, vtkDIYGhostUtilities::DataSetBlock* block,
int fieldType);
889 std::vector<vtkDataSet*>& outputs,
bool syncCell,
bool syncPoint);
891 std::vector<vtkDataSet*>& outputs,
int fieldType);
903 template <
class DataSetT>
911 template <
class DataSetT>
920 std::vector<vtkImageData*>& inputs, std::vector<vtkImageData*>& outputs);
922 std::vector<vtkRectilinearGrid*>& inputs, std::vector<vtkRectilinearGrid*>& outputs);
924 std::vector<vtkStructuredGrid*>& inputs, std::vector<vtkStructuredGrid*>& outputs);
926 std::vector<vtkUnstructuredGrid*>& inputs, std::vector<vtkUnstructuredGrid*>& outputs);
928 std::vector<vtkPolyData*>& inputs, std::vector<vtkPolyData*>& outputs);
939 static void InitializeBlocks(diy::Master& master, std::vector<vtkRectilinearGrid*>& inputs);
940 static void InitializeBlocks(diy::Master& master, std::vector<vtkStructuredGrid*>& inputs);
941 static void InitializeBlocks(diy::Master& master, std::vector<vtkUnstructuredGrid*>& inputs);
948 template <
class DataSetT>
952 template <
class BlockT>
964 diy::Master& master, std::vector<vtkRectilinearGrid*>& inputs);
967 diy::Master& master, std::vector<vtkUnstructuredGrid*>& inputs);
978 const diy::Master& master, std::vector<vtkImageData*>& inputs,
int outputGhostLevels);
980 const diy::Master& master, std::vector<vtkRectilinearGrid*>& inputs,
int outputGhostLevels);
982 const diy::Master& master, std::vector<vtkStructuredGrid*>& inputs,
int outputGhostLevels);
984 const diy::Master& master, std::vector<vtkUnstructuredGrid*>& inputs,
int outputGhostLevels);
986 const diy::Master& master, std::vector<vtkPolyData*>& inputs,
int outputGhostLevels);
994 static void EnqueueGhosts(
const diy::Master::ProxyWithLink& cp,
const diy::BlockID& blockId,
996 static void EnqueueGhosts(
const diy::Master::ProxyWithLink& cp,
const diy::BlockID& blockId,
998 static void EnqueueGhosts(
const diy::Master::ProxyWithLink& cp,
const diy::BlockID& blockId,
1000 static void EnqueueGhosts(
const diy::Master::ProxyWithLink& cp,
const diy::BlockID& blockId,
1002 static void EnqueueGhosts(
const diy::Master::ProxyWithLink& cp,
const diy::BlockID& blockId,
1028 template <
class DataSetT>
1030 diy::RegularAllReducePartners& partners, std::vector<DataSetT*>& inputs,
1031 std::vector<DataSetT*>& outputs,
int outputGhostLevels,
bool useImplicitArrays);
1056 template <
class DataSetT>
1058 diy::RegularAllReducePartners& partners, std::vector<DataSetT*>& inputs);
1063 template <
class DataSetT>
1065 diy::Master& master, std::vector<DataSetT*>& outputs,
int outputGhostLevels);
1071 template <
class DataSetT>
1079 const diy::Master& master, std::vector<vtkImageData*>& outputs,
int outputGhostLevels);
1081 const diy::Master& master, std::vector<vtkRectilinearGrid*>& outputs,
int outputGhostLevels);
1083 const diy::Master& master, std::vector<vtkStructuredGrid*>& outputs,
int outputGhostLevels);
1085 const diy::Master& master, std::vector<vtkUnstructuredGrid*>& outputs,
int outputGhostLevels);
1087 const diy::Master& master, std::vector<vtkPolyData*>& outputs,
int outputGhostLevels);
1096 std::vector<vtkImageData*>& outputs,
int outputGhostLevels);
1098 std::vector<vtkRectilinearGrid*>& inputs, std::vector<vtkRectilinearGrid*>& outputs,
1099 int outputGhostLevels);
1101 std::vector<vtkStructuredGrid*>& inputs, std::vector<vtkStructuredGrid*>& outputs,
1102 int outputGhostLevels);
1104 std::vector<vtkUnstructuredGrid*>& inputs, std::vector<vtkUnstructuredGrid*>& outputs,
1105 int outputGhostLevels);
1107 std::vector<vtkPolyData*>& outputs,
int outputGhostLevels);
1122 static void InflateBoundingBoxIfNecessary(
1128VTK_ABI_NAMESPACE_END
1129#include "vtkDIYGhostUtilities.txx"
abstract class to quickly locate points in 3-space
Fast, simple class for representing and operating on 3D bounds.
object to represent cell connectivity
assigner for use with DIY
static void EnqueueGhosts(const diy::Master::ProxyWithLink &cp, const diy::BlockID &blockId, vtkImageData *input, ImageDataBlock *block)
This method enqueues ghosts between communicating blocks.
static void InitializeGhostPointArray(typename DataSetTypeToBlockTypeConverter< DataSetT >::BlockType *block, DataSetT *output)
This method will set all ghosts points in output to zero.
static void FillGhostArrays(const diy::Master &master, std::vector< vtkImageData * > &outputs, int outputGhostLevels)
This method sets the ghost arrays in the output.
static void InitializeBlocks(diy::Master &master, std::vector< vtkDataSet * > &inputs, bool syncCell, bool syncPoint)
Initialize vtkDataSet blocks for synchronizing ghost data.
static void DequeueGhosts(const diy::Master::ProxyWithLink &cp, int gid, RectilinearGridBlockStructure &blockStructure)
This method dequeues ghosts sent between communicating blocks.
static void InitializeGhostCellArray(typename DataSetTypeToBlockTypeConverter< DataSetT >::BlockType *block, DataSetT *output)
This method will set all ghosts cells in output to zero.
static void FillGhostArrays(const diy::Master &master, std::vector< vtkRectilinearGrid * > &outputs, int outputGhostLevels)
This method sets the ghost arrays in the output.
static void ExchangeBlockStructures(diy::Master &master, std::vector< vtkRectilinearGrid * > &inputs)
Method to be overloaded for each supported type of input data set.
static void FillImplicitGhostArrays(const diy::Master &master, std::vector< vtkStructuredGrid * > &inputs, std::vector< vtkStructuredGrid * > &outputs, int outputGhostLevels)
This method create the implicit arrays in the output using the inputs array and the ghost data.
static LinkMap ComputeLinkMap(const diy::Master &master, std::vector< vtkRectilinearGrid * > &inputs, int outputGhostLevels)
Method to be overloaded for each supported input data set type, that computes the minimal link map be...
static LinkMap ComputeLinkMap(const diy::Master &master, std::vector< vtkUnstructuredGrid * > &inputs, int outputGhostLevels)
Method to be overloaded for each supported input data set type, that computes the minimal link map be...
static void FillGhostArrays(const diy::Master &master, std::vector< vtkStructuredGrid * > &outputs, int outputGhostLevels)
This method sets the ghost arrays in the output.
static void DeepCopyInputAndAllocateGhosts(UnstructuredGridBlock *block, vtkUnstructuredGrid *input, vtkUnstructuredGrid *outputs, bool cloneArrays)
Method to be overloaded for each supported input data set type, This method allocates ghosts in the o...
static void DequeueGhosts(const diy::Master::ProxyWithLink &cp, int gid, UnstructuredGridBlockStructure &blockStructure)
This method dequeues ghosts sent between communicating blocks.
static void ComputeLinksUsingNeededIds(Links &links, vtkDIYGhostUtilities::DataSetBlock *block, int fieldType)
Compute link map using known information from blocks, eg.
static void DeepCopyInputAndAllocateGhosts(PolyDataBlock *block, vtkPolyData *input, vtkPolyData *outputs, bool cloneArrays)
Method to be overloaded for each supported input data set type, This method allocates ghosts in the o...
static void InitializeBlocks(diy::Master &master, std::vector< vtkStructuredGrid * > &inputs)
Method to be overloaded for each supported type of input data set.
static void DeepCopyInputAndAllocateGhosts(StructuredGridBlock *block, vtkStructuredGrid *input, vtkStructuredGrid *outputs, bool cloneArrays)
Method to be overloaded for each supported input data set type, This method allocates ghosts in the o...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static void CloneGeometricStructures(std::vector< vtkUnstructuredGrid * > &inputs, std::vector< vtkUnstructuredGrid * > &outputs)
static void InitializeBlocks(diy::Master &master, std::vector< vtkUnstructuredGrid * > &inputs)
Method to be overloaded for each supported type of input data set.
static void CloneGeometricStructures(std::vector< vtkImageData * > &inputs, std::vector< vtkImageData * > &outputs)
static void FillImplicitGhostArrays(const diy::Master &master, std::vector< vtkRectilinearGrid * > &inputs, std::vector< vtkRectilinearGrid * > &outputs, int outputGhostLevels)
This method create the implicit arrays in the output using the inputs array and the ghost data.
static int GenerateGhostCellsUnstructuredGrid(std::vector< vtkUnstructuredGrid * > &inputs, std::vector< vtkUnstructuredGrid * > &outputs, int outputGhostLevels, vtkMultiProcessController *controller, bool useImplicitArrays=false)
Method that can be used to avoid the compile-time overhead of the templated method GenerateGhostCells...
Block< RectilinearGridBlockStructure, RectilinearGridInformation > RectilinearGridBlock
Block typedefs.
static void ReinitializeSelectedBits(vtkUnsignedCharArray *ghosts, unsigned char mask)
Reinitializes the bits that match the input bit mask in the input array to zero.
static void CloneInputData(vtkDataSet *input, vtkDataSet *output, int fieldType)
Clone input data into output.
static void CloneGeometricStructures(std::vector< vtkPolyData * > &inputs, std::vector< vtkPolyData * > &outputs)
static void InitializeBlocks(diy::Master &master, std::vector< vtkImageData * > &inputs)
Method to be overloaded for each supported type of input data set.
static void CloneGeometricStructures(std::vector< vtkStructuredGrid * > &inputs, std::vector< vtkStructuredGrid * > &outputs)
static bool ExchangeGhosts(diy::Master &master, diy::Assigner &assigner, diy::RegularAllReducePartners &partners, std::vector< DataSetT * > &inputs)
This method exchanges ghosts between connected blocks.
std::set< int > Links
Convenient typedefs.
static void FillImplicitGhostArrays(const diy::Master &master, std::vector< vtkUnstructuredGrid * > &inputs, std::vector< vtkUnstructuredGrid * > &outputs, int outputGhostLevels)
This method create the implicit arrays in the output using the inputs array and the ghost data.
static void DequeueGhosts(const diy::Master::ProxyWithLink &cp, int gid, ImageDataBlockStructure &blockStructure)
This method dequeues ghosts sent between communicating blocks.
static void ExchangeNeededIds(diy::Master &master, const vtkDIYExplicitAssigner &assigner, int fieldType)
Exchange global ids of data that needs to be synced to owners of the data.
static int GenerateGhostCells(std::vector< DataSetT * > &inputsDS, std::vector< DataSetT * > &outputsDS, int outputGhostLevels, vtkMultiProcessController *controller, bool useImplicitArrays)
Main pipeline generating ghosts.
static void EnqueueGhosts(const diy::Master::ProxyWithLink &cp, const diy::BlockID &blockId, vtkPolyData *input, PolyDataBlock *block)
This method enqueues ghosts between communicating blocks.
static void DeepCopyInputAndAllocateGhosts(RectilinearGridBlock *block, vtkRectilinearGrid *input, vtkRectilinearGrid *outputs, bool cloneArrays)
Method to be overloaded for each supported input data set type, This method allocates ghosts in the o...
Block< PolyDataBlockStructure, PolyDataInformation > PolyDataBlock
Block typedefs.
static void InitializeBlocks(diy::Master &master, std::vector< vtkPolyData * > &inputs)
Method to be overloaded for each supported type of input data set.
static void InitializeGhostArrays(diy::Master &master, std::vector< DataSetT * > &outputs, int outputGhostLevels)
This methods allocate a point and cell ghost array and fills it with 0.
static void ExchangeBoundingBoxes(diy::Master &master, const vtkDIYExplicitAssigner &assigner, std::vector< DataSetT * > &inputs)
This method exchanges the bounding boxes among blocks.
static void FillGhostArrays(const diy::Master &master, std::vector< vtkUnstructuredGrid * > &outputs, int outputGhostLevels)
This method sets the ghost arrays in the output.
~vtkDIYGhostUtilities() override
static void ExchangeNeededIds(diy::Master &master, const vtkDIYExplicitAssigner &assigner, bool syncCell, bool syncPoint)
Exchange global ids of data that needs to be synced to owners of the data.
static void EnqueueGhosts(const diy::Master::ProxyWithLink &cp, const diy::BlockID &blockId, vtkUnstructuredGrid *input, UnstructuredGridBlock *block)
This method enqueues ghosts between communicating blocks.
static void ExchangeFieldData(diy::Master &master, std::vector< vtkDataSet * > &inputs, std::vector< vtkDataSet * > &outputs, int fieldType)
This method exchanges ghost data across partitions.
vtkQuaternion< double > QuaternionType
Convenient typedefs.
static LinkMap ComputeLinkMap(const diy::Master &master, std::vector< vtkStructuredGrid * > &inputs, int outputGhostLevels)
Method to be overloaded for each supported input data set type, that computes the minimal link map be...
static void EnqueueGhosts(const diy::Master::ProxyWithLink &cp, const diy::BlockID &blockId, vtkStructuredGrid *input, StructuredGridBlock *block)
This method enqueues ghosts between communicating blocks.
static void CloneGeometricStructures(std::vector< vtkRectilinearGrid * > &inputs, std::vector< vtkRectilinearGrid * > &outputs)
static void FillGhostArrays(const diy::Master &master, std::vector< vtkPolyData * > &outputs, int outputGhostLevels)
This method sets the ghost arrays in the output.
static void DequeueGhosts(const diy::Master::ProxyWithLink &cp, int gid, StructuredGridBlockStructure &blockStructure)
This method dequeues ghosts sent between communicating blocks.
static void ExchangeBlockStructures(diy::Master &master, std::vector< vtkImageData * > &inputs)
Method to be overloaded for each supported type of input data set.
static void InitializeBlocks(diy::Master &master, std::vector< vtkDataSet * > &inputs, int fieldType, unsigned char ghostFlag)
Initialize vtkDataSet blocks for synchronizing ghost data.
std::array< double, 3 > VectorType
Convenient typedefs.
Block< UnstructuredDataBlockStructure, UnstructuredDataInformation > UnstructuredDataBlock
Block typedefs.
static int GenerateGhostCellsStructuredGrid(std::vector< vtkStructuredGrid * > &inputs, std::vector< vtkStructuredGrid * > &outputs, int outputGhostLevels, vtkMultiProcessController *controller, bool useImplicitArrays=false)
Method that can be used to avoid the compile-time overhead of the templated method GenerateGhostCells...
static void CopyInputsAndAllocateGhosts(diy::Master &master, diy::Assigner &assigner, diy::RegularAllReducePartners &partners, std::vector< DataSetT * > &inputs, std::vector< DataSetT * > &outputs, int outputGhostLevels, bool useImplicitArrays)
Copy the inputs into the outputs.
std::map< int, T > BlockMapType
Convenient typedefs.
Block< UnstructuredGridBlockStructure, UnstructuredGridInformation > UnstructuredGridBlock
Block typedefs.
Block< StructuredGridBlockStructure, StructuredGridInformation > StructuredGridBlock
Block typedefs.
static int GenerateGhostCellsImageData(std::vector< vtkImageData * > &inputs, std::vector< vtkImageData * > &outputs, int outputGhostLevels, vtkMultiProcessController *controller, bool useImplicitArrays=false)
Method that can be used to avoid the compile-time overhead of the templated method GenerateGhostCells...
std::array< int, 6 > ExtentType
Convenient typedefs.
static int GenerateGhostCellsPolyData(std::vector< vtkPolyData * > &inputs, std::vector< vtkPolyData * > &outputs, int outputGhostLevels, vtkMultiProcessController *controller, bool useImplicitArrays=false)
Method that can be used to avoid the compile-time overhead of the templated method GenerateGhostCells...
static void ExchangeBlockStructures(diy::Master &master, std::vector< vtkPolyData * > &inputs)
Method to be overloaded for each supported type of input data set.
static void DequeueGhosts(const diy::Master::ProxyWithLink &cp, int gid, PolyDataBlockStructure &blockStructure)
This method dequeues ghosts sent between communicating blocks.
static void FillImplicitGhostArrays(const diy::Master &master, std::vector< vtkPolyData * > &inputs, std::vector< vtkPolyData * > &outputs, int outputGhostLevels)
This method create the implicit arrays in the output using the inputs array and the ghost data.
static int SynchronizeGhostData(std::vector< vtkDataSet * > &inputsDS, std::vector< vtkDataSet * > &outputsDS, vtkMultiProcessController *controller, bool syncCell, bool SyncPoint)
Synchronize ghost data to match non-ghost data.
static void ExchangeBlockStructures(diy::Master &master, std::vector< vtkUnstructuredGrid * > &inputs)
Method to be overloaded for each supported type of input data set.
static int GenerateGhostCellsRectilinearGrid(std::vector< vtkRectilinearGrid * > &inputs, std::vector< vtkRectilinearGrid * > &outputs, int outputGhostLevels, vtkMultiProcessController *controller, bool useImplicitArrays=false)
Method that can be used to avoid the compile-time overhead of the templated method GenerateGhostCells...
static void CloneInputData(std::vector< vtkDataSet * > &inputs, std::vector< vtkDataSet * > &outputs, bool syncCell, bool syncPoint)
Clone input data into output.
static LinkMap ComputeLinkMap(const diy::Master &master, std::vector< vtkPolyData * > &inputs, int outputGhostLevels)
Method to be overloaded for each supported input data set type, that computes the minimal link map be...
std::vector< Links > LinkMap
Convenient typedefs.
Block< ImageDataBlockStructure, ImageDataInformation > ImageDataBlock
Block typedefs.
static void AddGhostArrays(diy::Master &master, std::vector< DataSetT * > &outputs)
Adds ghost arrays, which are present in blocks of master, to outputs point and / or cell data.
static void EnqueueGhosts(const diy::Master::ProxyWithLink &cp, const diy::BlockID &blockId, vtkRectilinearGrid *input, RectilinearGridBlock *block)
This method enqueues ghosts between communicating blocks.
static void DeepCopyInputAndAllocateGhosts(ImageDataBlock *block, vtkImageData *input, vtkImageData *outputs, bool cloneArrays)
Method to be overloaded for each supported input data set type, This method allocates ghosts in the o...
static LinkMap ComputeLinkMapUsingNeededIds(const diy::Master &master, bool syncCell, bool syncPoint)
Compute link map using known information from blocks, eg.
static LinkMap ComputeLinkMapUsingBoundingBoxes(const diy::Master &master)
static LinkMap ComputeLinkMap(const diy::Master &master, std::vector< vtkImageData * > &inputs, int outputGhostLevels)
Method to be overloaded for each supported input data set type, that computes the minimal link map be...
static void InitializeBlocks(diy::Master &master, std::vector< vtkRectilinearGrid * > &inputs)
Method to be overloaded for each supported type of input data set.
static void FillImplicitGhostArrays(const diy::Master &master, std::vector< vtkImageData * > &inputs, std::vector< vtkImageData * > &outputs, int outputGhostLevels)
This method create the implicit arrays in the output using the inputs array and the ghost data.
static void ExchangeFieldData(diy::Master &master, std::vector< vtkDataSet * > &inputs, std::vector< vtkDataSet * > &outputs, bool syncCell, bool syncPoint)
This method exchanges ghost data across partitions.
static void ExchangeBlockStructures(diy::Master &master, std::vector< vtkStructuredGrid * > &inputs)
Method to be overloaded for each supported type of input data set.
abstract class to specify dataset behavior
Represents and manipulates a collection of data arrays.
list of point or cell ids
dynamic, self-adjusting array of vtkIdType
topologically and geometrically regular array of data
a simple class to control print indentation
represent and manipulate 3x3 transformation matrices
Multiprocessing communication superclass.
Allocate and hold a VTK object.
concrete class for storing a set of points
represent and manipulate 3D points
concrete dataset represents vertices, lines, polygons, and triangle strips
templated base type for storage of quaternions.
a dataset that is topologically regular with variable spacing in the three coordinate directions
Hold a reference to a vtkObjectBase instance.
topologically regular array of data
dynamic, self-adjusting array of unsigned char
dataset represents arbitrary combinations of all possible cell types
Block structure to be used for diy communication.
vtkSmartPointer< vtkUnsignedCharArray > GhostPointArray
BlockMapType< vtkBoundingBox > NeighborBoundingBoxes
BlockStructureT BlockStructureType
Typedef handle on block structure and block information.
vtkBoundingBox BoundingBox
vtkSmartPointer< vtkUnsignedCharArray > GhostCellArray
BlockMapType< BlockStructureType > BlockStructures
InformationT InformationType
Typedef handle on block structure and block information.
InformationType Information
Base block structure for data sets.
vtkSmartPointer< vtkFieldData > GhostCellData
vtkSmartPointer< vtkFieldData > GhostPointData
This helper structure owns a typedef to the block type of DataSetT used with diy to generate ghosts.
GridBlockStructure(const int *extent, int dim)
GridBlockStructure constructor.
ExtentType ShiftedExtentWithNewGhosts
Extent of neighboring block that include ghost layers, shifted to match our mapping of the extent in ...
ExtentType Extent
Extent of neighboring block with no ghosts.
ExtentType ShiftedExtent
Extent of the neighboring block, shifted to match our mapping of the extent in the 3D world.
int DataDimension
This stores the dimension of the grid (1D, 2D, or 3D).
ExtentType ReceivedGhostExtent
unsigned char AdjacencyMask
Binary mask encoding the adjacency of the neighboring block w.r.t.
Block structure storing information being communicated by neighboring blocks for vtkImageData.
VectorType Origin
Origin of the neighboring vtkImageData.
ImageDataBlockStructure(vtkImageData *image, const ImageDataInformation &info)
Copy constructor.
VectorType Spacing
Spacing of the neighboring vtkImageData.
ImageDataBlockStructure(const int extent[6], int dim, const double origin[3], const double spacing[3], vtkMatrix3x3 *directionMatrix)
Constructor taking the extent (without ghosts) of the neighboring vtkImageData, as well as well as th...
QuaternionType OrientationQuaternion
Orientation of the neighboring vtkImageData.
ImageDataBlockStructure(const int extent[6], int dim, const double origin[3], const double spacing[3], const double orientationQuaternion[4])
Constructor taking the extent (without ghosts) of the neighboring vtkImageData, as well as well as th...
vtkNew< vtkCellArray > Lines
vtkNew< vtkCellArray > Strips
vtkNew< vtkCellArray > Polys
vtkIdType NumberOfStripsToSend
Handle on the number of cells to send of the corresponding type.
vtkNew< vtkIdList > StripIdsToSend
This lists the ids of the cells that we own and need to send to the current neighboring block.
TopologyBufferType ReceiveBuffer
vtkIdType StripConnectivitySize
Handle on the number of cells of corresponding type to be sent to the neighbor block.
vtkIdType PolyConnectivitySize
Handle on the number of cells of corresponding type to be sent to the neighbor block.
vtkNew< vtkIdList > LineIdsToSend
This lists the ids of the cells that we own and need to send to the current neighboring block.
vtkIdType NumberOfLinesToSend
Handle on the number of cells to send of the corresponding type.
TopologyBufferType SendBuffer
vtkIdType LineConnectivitySize
Handle on the number of cells of corresponding type to be sent to the neighbor block.
vtkIdType NumberOfPolysToSend
Handle on the number of cells to send of the corresponding type.
vtkNew< vtkIdList > PolyIdsToSend
This lists the ids of the cells that we own and need to send to the current neighboring block.
Block structure storing information being communicated by neighboring blocks for vtkRectilinearGrid.
vtkSmartPointer< vtkDataArray > ZCoordinates
Point coordinate arrays of the rectilinear grid.
vtkSmartPointer< vtkDataArray > YCoordinates
Point coordinate arrays of the rectilinear grid.
vtkSmartPointer< vtkDataArray > XCoordinates
Point coordinate arrays of the rectilinear grid.
RectilinearGridBlockStructure(vtkRectilinearGrid *grid, const RectilinearGridInformation &info)
Copy constructor.
RectilinearGridBlockStructure(const int extent[6], int dim, vtkDataArray *xCoordinates, vtkDataArray *yCoordinates, vtkDataArray *zCoordinates)
Constructor taking the extent (without ghosts) of the neighboring vtkRectilinearGrid,...
Grid interfacing with block's grid.
int XOrientation
Orientation of the x dimension.
int ExtentId
Index of the extent of the current grid.
int EndY
End point extent coordinate in the y dimension.
int StartY
Start point extent coordinate in the y dimension.
int EndX
End point extent coordinate in the x dimension.
int StartX
Start point extent coordinate in the x dimension.
int YOrientation
Orientation of the y dimension.
Block structure storing information being communicated by neighboring blocks for vtkStructuredGrid.
vtkNew< vtkPoints > GhostPoints
Buffer to store received ghost points from neighboring blocks.
vtkSmartPointer< vtkPoints > OuterPointLayers[6]
Point coordinate arrays of the structured grid.
StructuredGridBlockStructure(vtkStructuredGrid *grid, const StructuredGridInformation &info)
Copy constructor.
StructuredGridBlockStructure(const int extent[6], int dim, vtkDataArray *points[6])
Constructor taking the extent (without ghosts) of the neighboring vtkStructuredGrid,...
Grid2D GridInterface
2D grid interfacing 2 blocks.
vtkSmartPointer< vtkIdTypeArray > GhostGlobalPointIds
Point global ids sent to us by neighboring block, if present.
std::map< vtkIdType, vtkIdType > RedirectionMapForDuplicatePointIds
This is a mapping from points that have been sent by the current neighboring block and have already b...
vtkNew< vtkIdList > PointIdsToSend
This lists the ids of the points that we own and need to send to the current neighboring block.
vtkSmartPointer< vtkIdTypeArray > ReceivedSharedPointIds
It can happen that a point can be sent by multiple blocks.
vtkNew< vtkIdTypeArray > SharedPointIds
It can happen that a point can be sent by multiple blocks.
vtkNew< vtkIdList > MatchingReceivedPointIds
This lists the matching point ids to the interfacing points that are exchanged with current neighbori...
vtkNew< vtkIdList > CellIdsToSend
This lists the ids of the cells that we own and need to send to the current neighboring block.
vtkNew< vtkIdList > RemappedMatchingReceivedPointIdsSortedLikeTarget
This array describes the same points as MatchingReceivedPointIds, but points are ordered like in the ...
vtkNew< vtkPoints > GhostPoints
Ghost points sent by the current neighboring block.
vtkNew< vtkPoints > InterfacingPoints
These are the interfacing points sent by the current neighboring block.
vtkSmartPointer< vtkIdTypeArray > InterfacingGlobalPointIds
Point global ids of the interfacing surface sent to us by corresponding block, if present.
vtkSmartPointer< vtkFieldData > InterfacingPointData
Point data at the interface sent by our neighbor.
Topology information for cells to be exchanged.
vtkSmartPointer< vtkUnsignedCharArray > Types
vtkNew< vtkCellArray > CellArray
vtkSmartPointer< vtkCellArray > FaceLocations
vtkSmartPointer< vtkCellArray > Faces
TopologyBufferType ReceiveBuffer
vtkIdType FacesSize
Handle to the faces / connectivity size that we have to send to the neighboring block.
TopologyBufferType SendBuffer
vtkIdType ConnectivitySize
Handle to the faces / connectivity size that we have to send to the neighboring block.
vtkIdType FacesNum
Handle to the faces / connectivity size that we have to send to the neighboring block.