decompositionMethods: Standardised the conversion of scalar weights to integer weights

and general rationalisation and cleanup
This commit is contained in:
Henry Weller
2024-05-21 11:24:34 +01:00
parent c437265c80
commit 30afcdc331
18 changed files with 228 additions and 496 deletions

View File

@ -53,6 +53,7 @@ protected:
// Protected data
dictionary decompositionDict_;
label nProcessors_;
//- Optional constraints
@ -214,6 +215,15 @@ public:
// Other
//- Convert the given scalar weights to labels
// in the range 0-labelMax/2
static labelList scaleWeights
(
const scalarField& weights,
const label nWeights,
const bool distributed = true
);
//- Helper: determine (local or global) cellCells from mesh
// agglomeration. Agglomeration is local to the processor.
// local : connections are in local indices. Coupled across
@ -301,7 +311,7 @@ public:
labelList decompose
(
const polyMesh& mesh,
const scalarField& cWeights
const scalarField& cellWeights
);