mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: randomDecomp: added non-mesh decomposition. Fixes #1428.
This commit is contained in:
@ -86,6 +86,25 @@ Foam::randomDecomp::randomDecomp
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
Foam::labelList Foam::randomDecomp::decompose
|
||||
(
|
||||
const pointField& points,
|
||||
const scalarField& pointWeights
|
||||
) const
|
||||
{
|
||||
return randomMap(points.size());
|
||||
}
|
||||
|
||||
|
||||
Foam::labelList Foam::randomDecomp::decompose
|
||||
(
|
||||
const pointField& points
|
||||
) const
|
||||
{
|
||||
return randomMap(points.size());
|
||||
}
|
||||
|
||||
|
||||
Foam::labelList Foam::randomDecomp::decompose
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
|
||||
@ -91,6 +91,18 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
// No topology (implemented by geometric decomposers)
|
||||
|
||||
//- Return for every coordinate the wanted processor number.
|
||||
virtual labelList decompose
|
||||
(
|
||||
const pointField& points,
|
||||
const scalarField& pointWeights
|
||||
) const;
|
||||
|
||||
//- Decompose with uniform weights on the points
|
||||
virtual labelList decompose(const pointField& points) const;
|
||||
|
||||
//- Return for every coordinate the wanted processor number.
|
||||
virtual labelList decompose
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user