38 GAMGProcAgglomeration,
39 eagerGAMGProcAgglomeration,
50 Foam::eagerGAMGProcAgglomeration::eagerGAMGProcAgglomeration
83 printStats(
Pout, agglom_);
86 if (agglom_.size() >= 1)
92 label fineLevelIndex = 2;
93 fineLevelIndex < agglom_.size();
97 if (agglom_.hasMeshLevel(fineLevelIndex))
100 const lduMesh& levelMesh = agglom_.meshLevel(fineLevelIndex);
110 forAll(procAgglomMap, procI)
112 procAgglomMap[procI] = procI/(1<<mergeLevels_);
160 Pout<<
nl <<
"Agglomerated mesh overview" <<
endl;
161 printStats(
Pout, agglom_);
static void calculateRegionMaster(const label comm, const labelList &procAgglomMap, labelList &masterProcs, List< label > &agglomProcIDs)
Given fine to coarse processor map determine:
virtual label comm() const =0
Return communicator used for parallel communication.
static label allocateCommunicator(const label parent, const labelList &subRanks, const bool doPstream=true)
Allocate a new communicator.
Geometric agglomerated algebraic multigrid agglomeration class.
T & last()
Return the last element of the list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static void freeCommunicator(const label communicator, const bool doPstream=true)
Free a previously allocated communicator.
Abstract base class for meshes which provide LDU addressing for the construction of lduMatrix and LDU...
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual bool agglomerate()=0
Modify agglomeration. Return true if modified.
virtual ~eagerGAMGProcAgglomeration()
Destructor.
static label nProcs(const label communicator=0)
Number of processes in parallel run.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
#define forAllReverse(list, i)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
virtual bool agglomerate()
Modify agglomeration. Return true if modified.
Processor agglomeration of GAMGAgglomerations.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
prefixOSstream Pout(cout,"Pout")