/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2022 M. Janssens ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see . Class Foam::processorColour Description Colouring processors such that no neighbours have the same colour SourceFiles processorColour.C \*---------------------------------------------------------------------------*/ #ifndef Foam_processorColour_H #define Foam_processorColour_H #include "MeshObject.H" #include "lduMesh.H" #include "lduInterfacePtrsList.H" #include "primitiveFields.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { class lduMatrix; /*---------------------------------------------------------------------------*\ Class processorColour Declaration \*---------------------------------------------------------------------------*/ class processorColour : public MeshObject, public labelList { // Private Typedefs typedef MeshObject < lduMesh, MoveableMeshObject, processorColour > MeshObject_type; // Private Member Functions //- No copy construct processorColour(const processorColour&) = delete; //- No copy assignment void operator=(const processorColour&) = delete; protected: // Protected data //- Max number of colours label nColours_; // Protected Member Fucntions static void walkFront ( const lduMesh& mesh, DynamicList