Go to the documentation of this file.
30 template<
class Triangulation>
44 scalar previousLoadUnbalance = 0;
48 scalar maxLoadUnbalance =
mesh.calculateLoadUnbalance();
53 || maxLoadUnbalance <= previousLoadUnbalance
58 return iteration != 0;
61 previousLoadUnbalance = maxLoadUnbalance;
63 Info<<
" Total number of vertices before redistribution "
74 bMesh.time().timeName(),
81 zeroGradientFvPatchScalarField::typeName
90 typename Triangulation::Finite_vertices_iterator vit
91 =
mesh.finite_vertices_begin();
92 vit !=
mesh.finite_vertices_end();
97 if (vit->real() && !vit->featurePoint())
101 label cellI = cellSearch.findCell(v);
113 cellI = cellSearch.findNearestCell(v);
116 cellVertices[cellI]++;
125 cellWeights.internalField()[cI] =
max
132 autoPtr<mapDistributePolyMesh> mapDist =
decomposition_().distribute
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
List< label > labelList
A List of labels.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
#define forAll(list, i)
Loop across all elements in list.
static bool & parRun()
Is this a parallel run?
Ostream & endl(Ostream &os)
Add newline and flush stream.
pointFromPoint topoint(const Point &P)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
PrimitivePatch< face, List, const pointField > bMesh
Holder of faceList and points. (v.s. e.g. primitivePatch which references points)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
void distribute(const backgroundMeshDecomposition &decomposition)
cellShapeControlMesh & shapeControlMesh()
const double e
Elementary charge.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)