Utilities to produce ghost cells between a collection of data sets of same type.
More...
|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class.
|
|
vtkDIYGhostUtilities * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses.
|
|
| vtkBaseTypeMacro (vtkObject, vtkObjectBase) |
|
virtual void | DebugOn () |
| Turn debugging output on.
|
|
virtual void | DebugOff () |
| Turn debugging output off.
|
|
bool | GetDebug () |
| Get the value of the debug flag.
|
|
void | SetDebug (bool debugFlag) |
| Set the value of the debug flag.
|
|
virtual void | Modified () |
| Update the modification time for this object.
|
|
virtual vtkMTimeType | GetMTime () |
| Return this object's modified time.
|
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses.
|
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
vtkTypeBool | HasObserver (unsigned long event) |
|
vtkTypeBool | HasObserver (const char *event) |
|
vtkTypeBool | InvokeEvent (unsigned long event) |
|
vtkTypeBool | InvokeEvent (const char *event) |
|
std::string | GetObjectDescription () const override |
| The object description printed in messages and PrintSelf output.
|
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
vtkCommand * | GetCommand (unsigned long tag) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
void | RemoveObserver (vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
void | RemoveObservers (const char *event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object.
|
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| Overloads to AddObserver that allow developers to add class member functions as callbacks for events.
|
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| Overloads to AddObserver that allow developers to add class member functions as callbacks for events.
|
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| Allow user to set the AbortFlagOn() with the return value of the callback method.
|
|
vtkTypeBool | InvokeEvent (unsigned long event, void *callData) |
| This method invokes an event and return whether the event was aborted or not.
|
|
vtkTypeBool | InvokeEvent (const char *event, void *callData) |
| This method invokes an event and return whether the event was aborted or not.
|
|
virtual void | SetObjectName (const std::string &objectName) |
| Set/get the name of this object for reporting purposes.
|
|
virtual std::string | GetObjectName () const |
| Set/get the name of this object for reporting purposes.
|
|
const char * | GetClassName () const |
| Return the class name as a string.
|
|
virtual std::string | GetObjectDescription () const |
| The object description printed in messages and PrintSelf output.
|
|
virtual vtkTypeBool | IsA (const char *name) |
| Return 1 if this class is the same type of (or a subclass of) the named class.
|
|
virtual vtkIdType | GetNumberOfGenerationsFromBase (const char *name) |
| Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
|
|
virtual void | Delete () |
| Delete a VTK object.
|
|
virtual void | FastDelete () |
| Delete a reference to this object.
|
|
void | InitializeObjectBase () |
|
void | Print (ostream &os) |
| Print an object to an ostream.
|
|
void | Register (vtkObjectBase *o) |
| Increase the reference count (mark as used by another object).
|
|
virtual void | UnRegister (vtkObjectBase *o) |
| Decrease the reference count (release by another object).
|
|
int | GetReferenceCount () |
| Return the current reference count of this object.
|
|
void | SetReferenceCount (int) |
| Sets the reference count.
|
|
bool | GetIsInMemkind () const |
| A local state flag that remembers whether this object lives in the normal or extended memory space.
|
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| Methods invoked by print to print information about the object including superclasses.
|
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| Methods invoked by print to print information about the object including superclasses.
|
|
virtual bool | UsesGarbageCollector () const |
| Indicate whether the class uses vtkGarbageCollector or not.
|
|
|
static vtkTypeBool | IsTypeOf (const char *type) |
|
static vtkDIYGhostUtilities * | SafeDownCast (vtkObjectBase *o) |
|
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.
|
|
template<class DataSetT > |
static int | GenerateGhostCells (std::vector< DataSetT * > &inputsDS, std::vector< DataSetT * > &outputsDS, int outputGhostLevels, vtkMultiProcessController *controller) |
| Main pipeline generating ghosts.
|
|
|
static int | GenerateGhostCellsImageData (std::vector< vtkImageData * > &inputs, std::vector< vtkImageData * > &outputs, int outputGhostLevels, vtkMultiProcessController *controller) |
| Method that can be used to avoid the compile-time overhead of the templated method GenerateGhostCells .
|
|
static int | GenerateGhostCellsRectilinearGrid (std::vector< vtkRectilinearGrid * > &inputs, std::vector< vtkRectilinearGrid * > &outputs, int outputGhostLevels, vtkMultiProcessController *controller) |
| Method that can be used to avoid the compile-time overhead of the templated method GenerateGhostCells .
|
|
static int | GenerateGhostCellsStructuredGrid (std::vector< vtkStructuredGrid * > &inputs, std::vector< vtkStructuredGrid * > &outputs, int outputGhostLevels, vtkMultiProcessController *controller) |
| Method that can be used to avoid the compile-time overhead of the templated method GenerateGhostCells .
|
|
static int | GenerateGhostCellsPolyData (std::vector< vtkPolyData * > &inputs, std::vector< vtkPolyData * > &outputs, int outputGhostLevels, vtkMultiProcessController *controller) |
| Method that can be used to avoid the compile-time overhead of the templated method GenerateGhostCells .
|
|
static int | GenerateGhostCellsUnstructuredGrid (std::vector< vtkUnstructuredGrid * > &inputs, std::vector< vtkUnstructuredGrid * > &outputs, int outputGhostLevels, vtkMultiProcessController *controller) |
| Method that can be used to avoid the compile-time overhead of the templated method GenerateGhostCells .
|
|
static vtkObject * | New () |
| Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
|
|
static void | BreakOnError () |
| This method is called when vtkErrorMacro executes.
|
|
static void | SetGlobalWarningDisplay (vtkTypeBool val) |
| This is a global flag that controls whether any debug, warning or error messages are displayed.
|
|
static void | GlobalWarningDisplayOn () |
| This is a global flag that controls whether any debug, warning or error messages are displayed.
|
|
static void | GlobalWarningDisplayOff () |
| This is a global flag that controls whether any debug, warning or error messages are displayed.
|
|
static vtkTypeBool | GetGlobalWarningDisplay () |
| This is a global flag that controls whether any debug, warning or error messages are displayed.
|
|
static vtkTypeBool | IsTypeOf (const char *name) |
| Return 1 if this class type is the same type of (or a subclass of) the named class.
|
|
static vtkIdType | GetNumberOfGenerationsFromBaseType (const char *name) |
| Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class).
|
|
static vtkObjectBase * | New () |
| Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
|
|
static void | SetMemkindDirectory (const char *directoryname) |
| The name of a directory, ideally mounted -o dax, to memory map an extended memory space within.
|
|
static bool | GetUsingMemkind () |
| A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space.
|
|
|
static void | ReinitializeSelectedBits (vtkUnsignedCharArray *ghosts, unsigned char mask) |
| Reinitializes the bits that match the input bit mask in the input array to zero.
|
|
template<class DataSetT > |
static void | InitializeGhostPointArray (typename DataSetTypeToBlockTypeConverter< DataSetT >::BlockType *block, DataSetT *output) |
| This method will set all ghosts points in output to zero.
|
|
template<class DataSetT > |
static void | InitializeGhostCellArray (typename DataSetTypeToBlockTypeConverter< DataSetT >::BlockType *block, DataSetT *output) |
| This method will set all ghosts cells in output to zero.
|
|
template<class DataSetT > |
static void | ExchangeBoundingBoxes (diy::Master &master, const vtkDIYExplicitAssigner &assigner, std::vector< DataSetT * > &inputs) |
| This method exchanges the bounding boxes among blocks.
|
|
template<class BlockT > |
static LinkMap | ComputeLinkMapUsingBoundingBoxes (const diy::Master &master) |
|
template<class DataSetT > |
static void | CopyInputsAndAllocateGhosts (diy::Master &master, diy::Assigner &assigner, diy::RegularAllReducePartners &partners, std::vector< DataSetT * > &inputs, std::vector< DataSetT * > &outputs, int outputGhostLevels) |
| Copy the inputs into the outputs.
|
|
template<class DataSetT > |
static bool | ExchangeGhosts (diy::Master &master, diy::Assigner &assigner, diy::RegularAllReducePartners &partners, std::vector< DataSetT * > &inputs) |
| This method exchanges ghosts between connected blocks.
|
|
template<class DataSetT > |
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.
|
|
template<class DataSetT > |
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 | CloneInputData (std::vector< vtkDataSet * > &inputs, std::vector< vtkDataSet * > &outputs, bool syncCell, bool syncPoint) |
| Clone input data into output.
|
|
static void | CloneInputData (vtkDataSet *input, vtkDataSet *output, int fieldType) |
| Clone input data into output.
|
|
|
static void | InitializeBlocks (diy::Master &master, std::vector< vtkDataSet * > &inputs, bool syncCell, bool syncPoint) |
| Initialize vtkDataSet blocks for synchronizing ghost data.
|
|
static void | InitializeBlocks (diy::Master &master, std::vector< vtkDataSet * > &inputs, int fieldType, unsigned char ghostFlag) |
| Initialize vtkDataSet blocks for synchronizing ghost data.
|
|
|
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 | 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 LinkMap | ComputeLinkMapUsingNeededIds (const diy::Master &master, bool syncCell, bool syncPoint) |
| Compute link map using known information from blocks, eg.
|
|
static void | ComputeLinksUsingNeededIds (Links &links, vtkDIYGhostUtilities::DataSetBlock *block, int fieldType) |
| Compute link map using known information from blocks, eg.
|
|
|
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 | ExchangeFieldData (diy::Master &master, std::vector< vtkDataSet * > &inputs, std::vector< vtkDataSet * > &outputs, int fieldType) |
| This method exchanges ghost data across partitions.
|
|
|
static void | CloneGeometricStructures (std::vector< vtkImageData * > &inputs, std::vector< vtkImageData * > &outputs) |
|
static void | CloneGeometricStructures (std::vector< vtkRectilinearGrid * > &inputs, std::vector< vtkRectilinearGrid * > &outputs) |
|
static void | CloneGeometricStructures (std::vector< vtkStructuredGrid * > &inputs, std::vector< vtkStructuredGrid * > &outputs) |
|
static void | CloneGeometricStructures (std::vector< vtkUnstructuredGrid * > &inputs, std::vector< vtkUnstructuredGrid * > &outputs) |
|
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 | InitializeBlocks (diy::Master &master, std::vector< vtkRectilinearGrid * > &inputs) |
| Method to be overloaded for each supported type of input data set.
|
|
static void | InitializeBlocks (diy::Master &master, std::vector< vtkStructuredGrid * > &inputs) |
| Method to be overloaded for each supported type of input data set.
|
|
static void | InitializeBlocks (diy::Master &master, std::vector< vtkUnstructuredGrid * > &inputs) |
| Method to be overloaded for each supported type of input data set.
|
|
static void | InitializeBlocks (diy::Master &master, std::vector< vtkPolyData * > &inputs) |
| Method to be overloaded for each supported type of input data set.
|
|
|
static void | ExchangeBlockStructures (diy::Master &master, std::vector< vtkImageData * > &inputs) |
| Method to be overloaded for each supported type of input data set.
|
|
static void | ExchangeBlockStructures (diy::Master &master, std::vector< vtkRectilinearGrid * > &inputs) |
| Method to be overloaded for each supported type of input data set.
|
|
static void | ExchangeBlockStructures (diy::Master &master, std::vector< vtkStructuredGrid * > &inputs) |
| Method to be overloaded for each supported type of input data set.
|
|
static void | ExchangeBlockStructures (diy::Master &master, std::vector< vtkUnstructuredGrid * > &inputs) |
| Method to be overloaded for each supported type of input data set.
|
|
static void | ExchangeBlockStructures (diy::Master &master, std::vector< vtkPolyData * > &inputs) |
| Method to be overloaded for each supported type of input data set.
|
|
|
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 being necessary to exchange ghosts.
|
|
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 being necessary to exchange ghosts.
|
|
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 being necessary to exchange ghosts.
|
|
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 being necessary to exchange ghosts.
|
|
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 being necessary to exchange ghosts.
|
|
|
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 | EnqueueGhosts (const diy::Master::ProxyWithLink &cp, const diy::BlockID &blockId, vtkRectilinearGrid *input, RectilinearGridBlock *block) |
| This method enqueues ghosts between communicating blocks.
|
|
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 | EnqueueGhosts (const diy::Master::ProxyWithLink &cp, const diy::BlockID &blockId, vtkUnstructuredGrid *input, UnstructuredGridBlock *block) |
| This method enqueues ghosts between communicating blocks.
|
|
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 | DequeueGhosts (const diy::Master::ProxyWithLink &cp, int gid, ImageDataBlockStructure &blockStructure) |
| This method dequeues ghosts sent between communicating blocks.
|
|
static void | DequeueGhosts (const diy::Master::ProxyWithLink &cp, int gid, RectilinearGridBlockStructure &blockStructure) |
| This method dequeues ghosts sent between communicating blocks.
|
|
static void | DequeueGhosts (const diy::Master::ProxyWithLink &cp, int gid, StructuredGridBlockStructure &blockStructure) |
| This method dequeues ghosts sent between communicating blocks.
|
|
static void | DequeueGhosts (const diy::Master::ProxyWithLink &cp, int gid, UnstructuredGridBlockStructure &blockStructure) |
| This method dequeues ghosts sent between communicating blocks.
|
|
static void | DequeueGhosts (const diy::Master::ProxyWithLink &cp, int gid, PolyDataBlockStructure &blockStructure) |
| This method dequeues ghosts sent between communicating blocks.
|
|
|
static void | DeepCopyInputAndAllocateGhosts (ImageDataBlock *block, vtkImageData *input, vtkImageData *outputs) |
| Method to be overloaded for each supported input data set type, This method allocates ghosts in the output.
|
|
static void | DeepCopyInputAndAllocateGhosts (RectilinearGridBlock *block, vtkRectilinearGrid *input, vtkRectilinearGrid *outputs) |
| Method to be overloaded for each supported input data set type, This method allocates ghosts in the output.
|
|
static void | DeepCopyInputAndAllocateGhosts (StructuredGridBlock *block, vtkStructuredGrid *input, vtkStructuredGrid *outputs) |
| Method to be overloaded for each supported input data set type, This method allocates ghosts in the output.
|
|
static void | DeepCopyInputAndAllocateGhosts (UnstructuredGridBlock *block, vtkUnstructuredGrid *input, vtkUnstructuredGrid *outputs) |
| Method to be overloaded for each supported input data set type, This method allocates ghosts in the output.
|
|
static void | DeepCopyInputAndAllocateGhosts (PolyDataBlock *block, vtkPolyData *input, vtkPolyData *outputs) |
| Method to be overloaded for each supported input data set type, This method allocates ghosts in the output.
|
|
|
static void | FillGhostArrays (const diy::Master &master, std::vector< vtkImageData * > &outputs, int outputGhostLevels) |
| This method sets the ghost arrays in the output.
|
|
static void | FillGhostArrays (const diy::Master &master, std::vector< vtkRectilinearGrid * > &outputs, int outputGhostLevels) |
| This method sets the ghost arrays in the output.
|
|
static void | FillGhostArrays (const diy::Master &master, std::vector< vtkStructuredGrid * > &outputs, int outputGhostLevels) |
| This method sets the ghost arrays in the output.
|
|
static void | FillGhostArrays (const diy::Master &master, std::vector< vtkUnstructuredGrid * > &outputs, int outputGhostLevels) |
| This method sets the ghost arrays in the output.
|
|
static void | FillGhostArrays (const diy::Master &master, std::vector< vtkPolyData * > &outputs, int outputGhostLevels) |
| This method sets the ghost arrays in the output.
|
|
static vtkMallocingFunction | GetCurrentMallocFunction () |
|
static vtkReallocingFunction | GetCurrentReallocFunction () |
|
static vtkFreeingFunction | GetCurrentFreeFunction () |
|
static vtkFreeingFunction | GetAlternateFreeFunction () |
|
Utilities to produce ghost cells between a collection of data sets of same type.
vtkDIYGhostUtilities is a set of utilities which produce ghost cells between a collection of data sets of same type, using DIY.
Ghosts are computed from scratch, even if parts of the input already own ghosts. In such instance, ghosts are treated as if they didn't exist in the input.
Mixed types in the input vtkCompositeDataSet
are supported, in the sense that ghost cells are only exchanged between blocks of same type. Similarly, ghosts are exchanged between blocks that connect.
Blocks connect with different criteria depending on their types:
vtkImageData
: Blocks connect if they share face / edge / corner, if they share same dimension (1D / 2D / 3D), and if they have same orientation matrix and same spacing.
vtkRectilinearGrid
: Blocks connect if the x, y, and z coordinate arrays match at their interfaces.
vtkStructuredGrid
: Blocks connect if external faces of the grids are mangled together, regardless of relative inner orientation. In other words, if grid 1 is spanned by (i1, j1, k1) indexing, and grid 2 is spanned by (i2, j2, k2) indexing, if on one face, (j1, k1) connects with (-i2, -j2), those 2 grids are connected and will exchange ghosts. Two grids partially fitting are discarded. In order for 2 grids to fit, one corner from one face of one grid needs to be an existing point in one face of the second grid. Additionally, every points from this corner on both grids need to match until the opposite corner (opposite w.r.t. each dimension) is reached, and this opposite corner of the grid junction needs to be a corner of either grid.
vtkUnstructuredGrid
: Blocks connect if the external surface of neighboring grids match. To do so, only points are looked at. If at least one point matches a point in a neighboring grid, then they are connected. If there are no point global ids in the input, the 3D position of the points is used to determine if grids match, up to floating point precision in the coordinates. Note that integer coordinates can be used with this pipeline. If global ids are present in the input point data, then the pipeline will only look at matching global ids, and ignore point positions.
vtkPolyData
: Blocks connect if the boundary edges of neighboring poly data match. The filter behaves the same way it does with vtkUnstructuredGrid
. Point positions are used to match points if point global ids are not present, and point global ids are used instead if they are present.
Points at the interface between 2 partitions are edited depending on the ownership of the point after the ghost points are generated. One can keep track of which process owns a non-ghost copy of the point if an array associating each point with its process id is available in the input.
- Note
- Currently, only
vtkImageData
, vtkRectilinearGrid
, vtkStructuredGrid
, vtkUnstructuredGrid
and vtkPolyData
are implemented. Unless there is determining structural data added to subclasses of those classes, this filter should work well on subclasses of supported types.
- Warning
- This warning only applies for
vtkUnstructuredGrid
and vtkPolyData
inputs. If there are duplicate points in the outer shell of an input partition, then this filter cannot decide on how to connect the cells properly when generating ghosts. The same phenomenon occurs when the outer shell of the partition has 2 points with the same global id. In such circumstances, use the vtkStaticCleanUnstructuredGrid
or vtkStaticCleanPolyData
filter first in order to have a clean input.
Definition at line 104 of file vtkDIYGhostUtilities.h.