Scotch domain decomposition. More...
#include <scotchDecomp/scotchDecomp.H>
Scotch domain decomposition.
Definition at line 47 of file scotchDecomp.H.
Public Member Functions | |
TypeName ("scotch") | |
Runtime type information.
| |
scotchDecomp (const dictionary &decompositionDict, const polyMesh &mesh) | |
Construct given the decomposition dictionary and mesh.
| |
virtual | ~scotchDecomp () |
virtual bool | parallelAware () const |
Is method parallel aware (i.e. does it synchronize domains across.
| |
virtual labelList | decompose (const pointField &points, const scalarField &pointWeights) |
Return for every coordinate the wanted processor number. Use the.
| |
virtual labelList | decompose (const labelList &agglom, const pointField ®ionPoints, const scalarField ®ionWeights) |
Return for every coordinate the wanted processor number. Gets.
| |
virtual labelList | decompose (const labelList &agglom, const pointField ®ionPoints) |
Same but with uniform weights.
| |
virtual labelList | decompose (const labelListList &globalCellCells, const pointField &cc, const scalarField &cWeights) |
Return for every coordinate the wanted processor number. Explicitly.
| |
Static Public Member Functions | |
static void | calcCSR (const polyMesh &mesh, List< int > &adjncy, List< int > &xadj) |
Helper to convert local connectivity (supplied as owner,neighbour)
| |
static void | calcCSR (const labelListList &globalCellCells, List< int > &adjncy, List< int > &xadj) |
Helper to convert connectivity (supplied as cellcells) into.
|
scotchDecomp | ( | const dictionary & | decompositionDict, |
const polyMesh & | mesh | ||
) |
Construct given the decomposition dictionary and mesh.
Definition at line 409 of file scotchDecomp.C.
virtual ~scotchDecomp | ( | ) | [inline, virtual]
|
Definition at line 92 of file scotchDecomp.H.
TypeName | ( | "scotch" | ) |
Runtime type information.
virtual bool parallelAware | ( | ) | const [inline, virtual]
|
Is method parallel aware (i.e. does it synchronize domains across.
proc boundaries)
Implements decompositionMethod.
Definition at line 98 of file scotchDecomp.H.
Foam::labelList decompose | ( | const pointField & | points, |
const scalarField & | pointWeights | ||
) | [virtual]
|
Return for every coordinate the wanted processor number. Use the.
mesh connectivity (if needed) Weights get normalised so the minimum value is 1 before truncation to an integer so the weights should be multiples of the minimum value. The overall sum of weights might otherwise overflow.
Implements decompositionMethod.
Definition at line 422 of file scotchDecomp.C.
References Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, and List< T >::size().
Foam::labelList decompose | ( | const labelList & | agglom, |
const pointField & | regionPoints, | ||
const scalarField & | regionWeights | ||
) | [virtual]
|
Return for every coordinate the wanted processor number. Gets.
passed agglomeration map (from fine to coarse cells) and coarse cell location. Can be overridden by decomposers that provide this functionality natively. See note on weights above.
Reimplemented from decompositionMethod.
Definition at line 463 of file scotchDecomp.C.
References Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, and List< T >::size().
virtual labelList decompose | ( | const labelList & | agglom, |
const pointField & | regionPoints | ||
) | [inline, virtual]
|
Same but with uniform weights.
Reimplemented from decompositionMethod.
Definition at line 129 of file scotchDecomp.H.
References List< T >::size().
Foam::labelList decompose | ( | const labelListList & | globalCellCells, |
const pointField & | cc, | ||
const scalarField & | cWeights | ||
) | [virtual]
|
Return for every coordinate the wanted processor number. Explicitly.
provided mesh connectivity. The connectivity is equal to mesh.cellCells() except for
Implements decompositionMethod.
Definition at line 515 of file scotchDecomp.C.
References Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, and List< T >::size().
Helper to convert local connectivity (supplied as owner,neighbour)
into CSR (Metis,scotch) storage. Does cyclics but not processor patches
Definition at line 556 of file scotchDecomp.C.
References polyMesh::boundaryMesh(), primitiveMesh::cells(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), forAll, primitiveMesh::isInternalFace(), primitiveMesh::nCells(), primitiveMesh::nInternalFaces(), List< T >::setSize(), UList< T >::size(), PtrList< T >::size(), and polyBoundaryMesh::whichPatch().
Referenced by parMetisDecomp::decompose(), and metisDecomp::decompose().
void calcCSR | ( | const labelListList & | globalCellCells, |
List< int > & | adjncy, | ||
List< int > & | xadj | ||
) | [static]
|
Helper to convert connectivity (supplied as cellcells) into.
CSR (Metis,scotch) storage
Definition at line 654 of file scotchDecomp.C.
References forAll, List< T >::setSize(), and List< T >::size().