VTK
|
#include <vtkPStructuredGridConnectivity.h>
Public Types | |
typedef vtkStructuredGridConnectivity | Superclass |
![]() | |
typedef vtkAbstractGridConnectivity | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkPStructuredGridConnectivity * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetNumberOfGrids (const unsigned int N) |
int | GetGridRank (const int gridID) |
bool | IsGridRemote (const int gridID) |
bool | IsGridLocal (const int gridID) |
void | Initialize () |
void | ComputeNeighbors () |
virtual void | CreateGhostLayers (const int N=1) |
virtual void | SetController (vtkMultiProcessController *) |
virtual vtkMultiProcessController * | GetController () |
void | RegisterGrid (const int gridID, int extents[6], vtkUnsignedCharArray *nodesGhostArray, vtkUnsignedCharArray *cellGhostArray, vtkPointData *pointData, vtkCellData *cellData, vtkPoints *gridNodes) |
int | GetNumberOfLocalGrids () |
![]() | |
vtkStructuredGridConnectivity * | NewInstance () const |
void | GetGridExtent (const int gridID, int extent[6]) |
void | SetGhostedGridExtent (const int gridID, int ext[6]) |
void | GetGhostedGridExtent (const int gridID, int ext[6]) |
vtkStructuredNeighbor | GetGridNeighbor (const int gridID, const int nei) |
vtkIdList * | GetNeighbors (const int gridID, int *extents) |
virtual void | SetWholeExtent (int, int, int, int, int, int) |
virtual void | SetWholeExtent (int[6]) |
virtual int * | GetWholeExtent () |
virtual void | GetWholeExtent (int &, int &, int &, int &, int &, int &) |
virtual void | GetWholeExtent (int[6]) |
virtual int | GetDataDimension () |
int | GetNumberOfNeighbors (const int gridID) |
void | FillGhostArrays (const int gridID, vtkUnsignedCharArray *nodesArray, vtkUnsignedCharArray *cellsArray) |
![]() | |
vtkAbstractGridConnectivity * | NewInstance () const |
unsigned int | GetNumberOfGrids () |
vtkUnsignedCharArray * | GetGhostedPointGhostArray (const int gridID) |
vtkUnsignedCharArray * | GetGhostedCellGhostArray (const int gridID) |
vtkPointData * | GetGhostedGridPointData (const int gridID) |
vtkCellData * | GetGhostedGridCellData (const int gridID) |
vtkPoints * | GetGhostedPoints (const int gridID) |
virtual void | SetNumberOfGhostLayers (unsigned int) |
virtual unsigned int | GetNumberOfGhostLayers () |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkPStructuredGridConnectivity * | New () |
static int | IsTypeOf (const char *type) |
static vtkPStructuredGridConnectivity * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static vtkStructuredGridConnectivity * | New () |
static int | IsTypeOf (const char *type) |
static vtkStructuredGridConnectivity * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkAbstractGridConnectivity * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkPStructuredGridConnectivity () | |
~vtkPStructuredGridConnectivity () | |
bool | GridExtentsAreEqual (int rhs[6], int lhs[6]) |
bool | HasPointData (const int gridIdx) |
bool | HasCellData (const int gridIdx) |
bool | HasPoints (const int gridIdx) |
void | InitializeMessageCounters () |
void | ClearRemoteData () |
void | ClearRawBuffers () |
void | RegisterRemoteGrid (const int gridID, int extents[6], int process) |
virtual void | TransferGhostDataFromNeighbors (const int gridID) |
void | PackGhostData () |
void | UnpackGhostData () |
void | SerializeBufferSizes (int *&sizesbuf, vtkIdType &N) |
void | ExchangeBufferSizes () |
void | ExchangeGhostDataInit () |
void | PostReceives () |
void | PostSends () |
void | CommunicateGhostData () |
void | ExchangeGhostDataPost () |
void | ExchangeGhostData () |
void | ExchangeGridExtents () |
void | SerializeGridExtents (int *&sndbuffer, vtkIdType &N) |
void | TransferRemoteNeighborData (const int gridIdx, const int nei, const vtkStructuredNeighbor &Neighbor) |
void | DeserializeBufferSizesForProcess (int *buffersizes, vtkIdType N, const int processId) |
void | SerializeGhostPoints (const int gridIdx, int ext[6], vtkMultiProcessStream &bytestream) |
void | SerializeDataArray (vtkDataArray *dataArray, vtkMultiProcessStream &bytestream) |
void | SerializeFieldData (int sourceExtent[6], int targetExtent[6], vtkFieldData *fieldData, vtkMultiProcessStream &bytestream) |
void | SerializeGhostPointData (const int gridIdx, int ext[6], vtkMultiProcessStream &bytestream) |
void | SerializeGhostCellData (const int gridIdx, int ext[6], vtkMultiProcessStream &bytestream) |
void | DeserializeGhostPoints (const int gridIdx, const int nei, int ext[6], vtkMultiProcessStream &bytestream) |
void | DeserializeDataArray (vtkDataArray *&dataArray, const int dataType, const int numberOfTuples, const int numberOfComponents, vtkMultiProcessStream &bytestream) |
void | DeserializeFieldData (int ext[6], vtkFieldData *fieldData, vtkMultiProcessStream &bytestream) |
void | DeserializeGhostPointData (const int gridIdx, const int nei, int ext[6], vtkMultiProcessStream &bytestream) |
void | DeserializeGhostCellData (const int gridIdx, const int nei, int ext[6], vtkMultiProcessStream &bytestream) |
void | SerializeGhostData (const int sndGridID, const int rcvGrid, int sndext[6], unsigned char *&buffer, unsigned int &size) |
void | DeserializeGhostData (const int gridID, const int neiListID, const int neiGridIdx, int rcvext[6], unsigned char *buffer, unsigned int size) |
void | DeserializeGridExtentForProcess (int *rcvbuffer, vtkIdType &N, const int processId) |
![]() | |
vtkStructuredGridConnectivity () | |
virtual | ~vtkStructuredGridConnectivity () |
int | Cardinality (int S[2]) |
void | GetRealExtent (const int gridID, int GridExtent[6], int RealExtent[6]) |
bool | IsNodeOnBoundary (const int i, const int j, const int k) |
int | IntervalOverlap (int A[2], int B[2], int overlap[2]) |
int | DoPartialOverlap (int s[2], int S[2], int overlap[2]) |
void | EstablishNeighbors (const int i, const int j) |
void | AcquireDataDescription () |
bool | HasBlockConnection (const int gridID, const int blockDirection) |
void | RemoveBlockConnection (const int gridID, const int blockDirection) |
void | AddBlockConnection (const int gridID, const int blockDirection) |
void | ClearBlockConnections (const int gridID) |
int | GetNumberOfConnectingBlockFaces (const int gridID) |
void | SetBlockTopology (const int gridID) |
void | CreateGhostedExtent (const int gridID, const int N) |
void | CreateGhostedMaskArrays (const int gridID) |
void | InitializeGhostData (const int gridID) |
void | AllocatePointData (vtkPointData *RPD, const int N, vtkPointData *PD) |
void | AllocateCellData (vtkCellData *RCD, const int N, vtkCellData *CD) |
void | TransferRegisteredDataToGhostedData (const int gridID) |
void | ComputeNeighborSendAndRcvExtent (const int gridID, const int N) |
int | GetNeighborIndex (const int gridIdx, const int NeighborGridIdx) |
void | PrintExtent (int extent[6]) |
bool | InBounds (const int idx, const int Lo, const int Hi) |
bool | StrictlyInsideBounds (const int idx, const int Lo, const int Hi) |
bool | IsSubset (int A[2], int B[2]) |
int | GetNumberOfNodesPerCell (const int dim) |
void | FillNodesGhostArray (const int gridID, const int dataDescription, int GridExtent[6], int RealExtent[6], vtkUnsignedCharArray *nodeArray) |
void | FillCellsGhostArray (const int dataDescription, const int numNodesPerCell, int dims[3], int CellExtent[6], vtkUnsignedCharArray *nodesArray, vtkUnsignedCharArray *cellsArray) |
void | SearchNeighbors (const int gridID, const int i, const int j, const int k, vtkIdList *neiList) |
void | MarkNodeProperty (const int gridID, const int i, const int j, const int k, int ext[6], int RealExtent[6], unsigned char &pfield) |
void | MarkCellProperty (unsigned char &pfield, unsigned char *nodeGhostFields, const int numNodes) |
bool | IsGhostNode (int GridExtent[6], int RealExtent[6], const int i, const int j, const int k) |
bool | IsNodeOnBoundaryOfExtent (const int i, const int j, const int k, int ext[6]) |
bool | IsNodeOnSharedBoundary (const int gridID, int RealExtent[6], const int i, const int j, const int k) |
bool | IsNodeInterior (const int i, const int j, const int k, int GridExtent[6]) |
bool | IsNodeWithinExtent (const int i, const int j, const int k, int GridExtent[6]) |
void | SetNeighbors (const int i, const int j, int i2jOrientation[3], int j2iOrientation[3], int overlapExtent[6]) |
void | DetermineNeighborOrientation (const int idx, int A[2], int B[2], int overlap[2], int orient[3]) |
void | DetectNeighbors (const int i, const int j, int ex1[6], int ex2[6], int orientation[3], int ndim) |
int | PartialOverlap (int A[2], const int CofA, int B[2], const int CofB, int overlap[2]) |
void | GetIJKBlockOrientation (const int i, const int j, const int k, int ext[6], int orientation[3]) |
int | Get1DOrientation (const int idx, const int ExtentLo, const int ExtentHi, const int OnLo, const int OnHi, const int NotOnBoundary) |
void | GetGhostedExtent (int *ghostedExtent, int GridExtent[6], const int minIdx, const int maxIdx, const int N) |
void | TransferLocalNeighborData (const int gridID, const vtkStructuredNeighbor &Neighor) |
void | CopyCoordinates (vtkPoints *source, vtkIdType sourceIdx, vtkPoints *target, vtkIdType targetIdx) |
void | CopyFieldData (vtkFieldData *source, vtkIdType sourceIdx, vtkFieldData *target, vtkIdType targetIdx) |
![]() | |
vtkAbstractGridConnectivity () | |
virtual | ~vtkAbstractGridConnectivity () |
void | RegisterGridNodes (const int gridID, vtkPoints *nodes) |
void | RegisterGridGhostArrays (const int gridID, vtkUnsignedCharArray *nodesArray, vtkUnsignedCharArray *cellsArray) |
void | RegisterFieldData (const int gridID, vtkPointData *PointData, vtkCellData *CellData) |
void | AllocateUserRegisterDataStructures () |
void | DeAllocateUserRegisterDataStructures () |
void | AllocateInternalDataStructures () |
void | DeAllocateInternalDataStructures () |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
vtkPStructuredGridConnectivity inherits from vtkStructuredGridConnectivity and implements functionality to compute the neighboring topology within a single, partitioned and distributed structured grid dataset.
Definition at line 50 of file vtkPStructuredGridConnectivity.h.
Definition at line 55 of file vtkPStructuredGridConnectivity.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkStructuredGridConnectivity.
|
static |
|
protectedvirtual |
Reimplemented from vtkStructuredGridConnectivity.
vtkPStructuredGridConnectivity* vtkPStructuredGridConnectivity::NewInstance | ( | ) | const |
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkStructuredGridConnectivity.
|
virtual |
Set & Get the process controller
|
virtual |
Set & Get the process controller
|
virtual |
Sets the total number of domains distributed among processors
Reimplemented from vtkStructuredGridConnectivity.
|
virtual |
See vtkStructuredGridConnectivity::RegisterGrid
Reimplemented from vtkStructuredGridConnectivity.
|
inline |
Returns the number of local grids registers by the process that owns the current vtkPStructuredGridConnectivity instance
Definition at line 80 of file vtkPStructuredGridConnectivity.h.
Returns the rank of the given gridID. A nominal value of -1 for the return value of this method indicates that possibly ComputeNeighbors has not been called and consequently the GridRanks vector has not been populated yet.
Definition at line 510 of file vtkPStructuredGridConnectivity.h.
|
inline |
Returns true iff the grid is remote, otherwise false.
Definition at line 493 of file vtkPStructuredGridConnectivity.h.
|
inline |
Returns true iff the grid corresponding to the given gridID is local.
Definition at line 499 of file vtkPStructuredGridConnectivity.h.
void vtkPStructuredGridConnectivity::Initialize | ( | ) |
Initializes this instance of vtkPStructuredGridConnectivity, essentially, the acquires the local process ID from the registered controller. If a controller is not registered, the global controller is set.
|
virtual |
Computes the neighboring topology of a distributed structured grid data-set. See vtkStructuredGridConnectivity::ComputeNeighbors
Reimplemented from vtkStructuredGridConnectivity.
|
virtual |
Creates ghost layers on the grids owned by this process using data from both local and remote block neighbors.
Reimplemented from vtkStructuredGridConnectivity.
Returns true if the two extents are equal, otherwise false.
Definition at line 354 of file vtkPStructuredGridConnectivity.h.
|
inlineprotected |
Returns true iff the grid corresponding to the given ID has point data.
Definition at line 368 of file vtkPStructuredGridConnectivity.h.
|
inlineprotected |
Returns true iff the grid corresponding to the given ID has cell data.
Definition at line 383 of file vtkPStructuredGridConnectivity.h.
|
inlineprotected |
Returns true iff the grid corresponding to the given ID has points.
Definition at line 398 of file vtkPStructuredGridConnectivity.h.
|
inlineprotected |
Sets all message counters to 0.
Definition at line 412 of file vtkPStructuredGridConnectivity.h.
|
inlineprotected |
Clears all internal VTK data-structures that are used to store the remote ghost data.
Definition at line 447 of file vtkPStructuredGridConnectivity.h.
|
inlineprotected |
Clears all raw send/rcv buffers
Definition at line 418 of file vtkPStructuredGridConnectivity.h.
|
protected |
Registers a remote grid with the given grid Id, structured extents and process.
|
protected |
This method transfers all the remote neighbor data to the ghosted grid instance of the grid corresponding to the given grid index.
|
protectedvirtual |
This method transfers the fields (point data and cell data) to the ghost extents from the neighboring grids of the grid corresponding to the given gridID.
Reimplemented from vtkStructuredGridConnectivity.
|
protected |
Helper method to pack all the ghost data into send buffers.
|
protected |
Helper method to unpack the raw ghost data from the receive buffers in to the VTK remote point data-structures.
|
protected |
Helper method to deserialize the buffer sizes coming from the given process.
|
protected |
Helper method to serialize the buffer sizes for the grids of this process to neighboring grids.
|
protected |
Helper method to exchange buffer sizes.Each process sends the send buffer size of each grid to each of its neighbors.
|
protected |
Helper method for exchanging ghost data. It loops through all the grids, and for each neighbor it constructs the corresponding send buffer. size and posts a non-blocking receive.
|
protected |
Helper method to communicate ghost data. Loops through all the neighbors and for every remote neighbor posts a non-blocking receive.
|
protected |
Helper method to communicate ghost data. Loops through the neighbors and for every remote neighbor posts a non-blocking send.
|
protected |
Helper method for exchanging ghost data. It loops through all the grids and for each neighbor of each grid it serializes the data in the send extent and posts a non-blocking send.
|
protected |
Helper method for exchanging ghost data. It blocks until all requests are complete (via a waitAll) and then de-serializes the receive buffers to form the corresponding remote data-structures.
|
protected |
Exchanges ghost data of the grids owned by this process.
|
protected |
Helper method to serialize the ghost points to send to a remote process. Called from SerializeGhostData.
|
protected |
Serializes the data array into a bytestream.
|
protected |
Helper method to serialize field data. Called from SerializeGhostPointData and SerializeGhostCellData.
|
protected |
Helper method to serialize ghost point data. Called from SerializeGhostData.
|
protected |
Helper method to serialize ghost cell data. Called from SerializeGhostData.
|
protected |
Helper method to de-serialize the ghost points received from a remote process. Called from DeserializeGhostData.
|
protected |
Helper method to deserialize the data array from a bytestream.
|
protected |
Helper method to de-serialize field data. Called from DeserializeGhostPointData and DeserializeGhostCellData.
|
protected |
Helper method to de-serialize the ghost point data received from a remote process. Called from DeserializeGhostData.
|
protected |
Helper method to de-serialize the ghost cell data received from a remote process. Called from DeserializeGhostCellData.
|
protected |
Given a grid ID and the corresponding send extent, this method serializes the grid and data within the given extent. Upon return, the buffer is allocated and contains the data in raw form, ready to be sent. Called from vtkPStructuredGridConnectivity::PackGhostData().
|
protected |
Given the raw buffer consisting of ghost data, this method deserializes the object and returns the gridID and rcvext of the grid.
|
protected |
Exchanges the grid extents among all processes and fully populates the GridExtents vector.
|
protected |
Serializes the grid extents and information in a buffer to send over MPI The data is serialized as follows: ID imin imax jmin jmax kmin kmax
|
protected |
Deserializes the received grid extent information to the GridExtents internal data-structures.
|
protected |
Definition at line 114 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 115 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 116 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 119 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 120 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 125 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 126 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 127 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 132 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 133 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 134 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 135 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 137 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 138 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 139 of file vtkPStructuredGridConnectivity.h.
|
protected |
Definition at line 142 of file vtkPStructuredGridConnectivity.h.