Commit 8d3b2a64 authored by mattijs's avatar mattijs

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

parent 26892d3b
......@@ -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
(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment