Skip to content
Snippets Groups Projects
Commit a3f3ec81 authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

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

parent 76c156a6
Branches
Tags
No related merge requests found
......@@ -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
(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment