Go to the documentation of this file.
53 #ifndef hierarchGeomDecomp_H
54 #define hierarchGeomDecomp_H
88 const label globalCurrentSize,
109 const label leftIndex,
110 const scalar leftValue,
112 const scalar wantedSize,
125 const label leftIndex,
126 const scalar leftValue,
128 const scalar wantedSize,
140 const label prevMult,
153 const label prevMult,
List< label > labelList
A List of labels.
FixedList< direction, 3 > decompOrder_
Decomposition order in terms of components.
static label findLower(const List< scalar > &, const scalar t, const label left, const label right)
Find index of t in list inbetween indices left and right.
void setDecompOrder()
Convert ordering string ("xyz") into list of components.
Mesh consisting of general polyhedral cells.
Geometrical domain decomposition.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual ~hierarchGeomDecomp()
Destructor.
void sortComponent(const label sizeTol, const pointField &, const labelList &slice, const direction componentIndex, const label prevMult, labelList &finalDecomp)
Recursively sort in x,y,z (or rather acc. to decompOrder_)
void operator=(const hierarchGeomDecomp &)
Disallow default bitwise copy construct and assignment.
Direction is an integer type used to represent the Cartesian directions etc. Currently it is a typede...
virtual bool parallelAware() const
Hierarchgeom is aware of processor boundaries.
TypeName("hierarchical")
Runtime type information.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static void calculateSortedWeightedSizes(const labelList ¤t, const labelList &indices, const scalarField &weights, const label globalCurrentSize, scalarField &sortedWeightedSizes)
Evaluates the weighted sizes for each sorted point.
static void findBinary(const label sizeTol, const List< scalar > &, const label leftIndex, const scalar leftValue, const scalar maxValue, const scalar wantedSize, label &mid, scalar &midValue)
Find midValue (at local index mid) such that the number of.
Does hierarchical decomposition of points. Works by first sorting the points in x direction into equa...
hierarchGeomDecomp(const hierarchGeomDecomp &)
virtual labelList decompose(const pointField &, const scalarField &weights)
Return for every coordinate the wanted processor number.