35 #ifndef decompositionMethod_H 36 #define decompositionMethod_H 228 const label nLocalCoarse,
240 const label nLocalCoarse,
virtual labelList decompose(const pointField &points, const scalarField &pointWeights)
Return for every coordinate the wanted processor number.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual ~decompositionMethod()
Destructor.
PtrList< decompositionConstraint > constraints_
Optional constraints.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static void calcCellCells(const polyMesh &mesh, const labelList &agglom, const label nLocalCoarse, const bool global, CompactListList< label > &cellCells)
Helper: determine (local or global) cellCells from mesh.
void setConstraints(const polyMesh &mesh, boolList &blockedFace, PtrList< labelList > &specifiedProcessorFaces, labelList &specifiedProcessor, List< labelPair > &explicitConnections)
Helper: extract constraints:
static autoPtr< decompositionMethod > NewDistributor(const dictionary &decompositionDict)
Return a reference to the selected decomposition method.
TypeName("decompositionMethod")
Runtime type information.
dictionary decompositionDict_
static autoPtr< decompositionMethod > NewDecomposer(const dictionary &decompositionDict)
Return a reference to the selected decomposition method.
List< label > labelList
A List of labels.
Abstract base class for decomposition.
static dictionary decomposeParDict(const Time &time)
Read and return the decomposeParDict.
decompositionMethod(const dictionary &decompositionDict)
Construct given the decomposition dictionary.
void operator=(const decompositionMethod &)=delete
Disallow default bitwise assignment.
A packed storage unstructured matrix of objects of type <T> using an offset table for access...
void applyConstraints(const polyMesh &mesh, const boolList &blockedFace, const PtrList< labelList > &specifiedProcessorFaces, const labelList &specifiedProcessor, const List< labelPair > &explicitConnections, labelList &finalDecomp)
Helper: apply constraints to a decomposition. This gives.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
declareRunTimeSelectionTable(autoPtr, decompositionMethod, decomposer,(const dictionary &decompositionDict),(decompositionDict))
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.