37 #ifndef Foam_processorColour_H 38 #define Foam_processorColour_H 58 public MeshObject<lduMesh, MoveableMeshObject, processorColour>,
label nColours_
Max number of colours.
static label cellColour(const lduMesh &mesh, labelList &cellColour, labelList &patchToColour)
Calculate (locally) per cell colour according to walking from global patches. Returns number of colou...
virtual ~processorColour()=default
Destructor.
label & front()
Access first element of the list, position [0].
Abstract base class for meshes which provide LDU addressing for the construction of lduMatrix and LDU...
static void walkFront(const lduMesh &mesh, DynamicList< label > &front, labelList &cellColour)
static int myProcNo(const label communicator=worldComm)
Rank of this process in the communicator (starting from masterNo()). Can be negative if the process i...
virtual bool movePoints()
label & operator[](const label i)
Return element of UList.
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
const lduMesh & mesh() const noexcept
Reference to the mesh.
static const processorColour & New(const lduMesh &mesh)
Should use the MeshObject provided one but that needs a.
static label colour(const lduMesh &mesh, labelList &procColour)
Calculate processor colouring from processor connectivity. Sets colour per processor such that no nei...
Specialisations of Field<T> for scalar, vector and tensor.
Colouring processors such that no neighbours have the same colour.
TypeName("processorColour")
Runtime type information.