BUG: randomDecomp: added non-mesh decomposition. Fixes #1428.

This commit is contained in:
mattijs
2019-09-05 14:25:15 +01:00
committed by Andrew Heather
parent 76c156a667
commit a3f3ec81f8
2 changed files with 31 additions and 0 deletions

View File

@ -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,

View File

@ -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
(