22 #ifndef VTKEXTENTRCBPARTITIONER_H_
23 #define VTKEXTENTRCBPARTITIONER_H_
41 assert(
"pre: Number of partitions requested must be > 0" && (N >= 0) );
43 this->NumberOfPartitions = N;
53 this->GlobalExtent[0] = imin;
54 this->GlobalExtent[1] = imax;
55 this->GlobalExtent[2] = jmin;
56 this->GlobalExtent[3] = jmax;
57 this->GlobalExtent[4] = kmin;
58 this->GlobalExtent[5] = kmax;
62 this->SetGlobalExtent( ext[0], ext[1], ext[2], ext[3], ext[4], ext[5] );
81 void GetPartitionExtent(
const int idx,
int ext[6] );
92 this->PartitionExtents.clear();
94 this->ExtentIsPartitioned =
false;
101 void ExtendGhostLayers(
int ext[6] );
108 int ext[6],
const int minIdx,
const int maxIdx )
110 ext[minIdx]-=this->NumberOfGhostLayers;
111 ext[maxIdx]+=this->NumberOfGhostLayers;
112 ext[minIdx] = (ext[minIdx] < this->GlobalExtent[minIdx])?
113 this->GlobalExtent[minIdx] : ext[minIdx];
114 ext[maxIdx] = (ext[maxIdx] > this->GlobalExtent[maxIdx])?
115 this->GlobalExtent[maxIdx] : ext[maxIdx];
121 void AcquireDataDescription();
124 void GetExtent(
const int idx,
int ext[6] );
127 void AddExtent(
int ext[6]);
131 void ReplaceExtent(
const int idx,
int ext[6]);
134 void SplitExtent(
int parent[6],
int s1[6],
int s2[6],
int splitDimension);
138 int GetNumberOfTotalExtents();
142 int GetNumberOfNodes(
int ext[6] );
146 int GetNumberOfCells(
int ext[6] );
149 int GetLongestDimensionLength(
int ext[6] );
152 int GetLongestDimension(
int ext[6] );
void SetGlobalExtent(int imin, int imax, int jmin, int jmax, int kmin, int kmax)
#define VTKCOMMONEXECUTIONMODEL_EXPORT
abstract base class for most VTK objects
void SetGlobalExtent(int ext[6])
#define vtkGetMacro(name, type)
#define vtkTypeMacro(thisClass, superclass)
void GetGhostedExtent(int ext[6], const int minIdx, const int maxIdx)
GLuint const GLchar * name
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
void SetNumberOfPartitions(const int N)
std::vector< int > PartitionExtents
GLsizei const GLchar ** string
#define vtkSetMacro(name, type)