57 mergeLevels_(
controlDict.getOrDefault<label>(
"mergeLevels", 1))
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);
101 label levelComm = levelMesh.
comm();
110 forAll(procAgglomMap, proci)
112 procAgglomMap[proci] = proci/(1<<mergeLevels_);
160 Pout<<
nl <<
"Agglomerated mesh overview" <<
endl;
161 printStats(
Pout, agglom_);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Geometric agglomerated algebraic multigrid agglomeration class.
static void calculateRegionMaster(const label comm, const labelList &procAgglomMap, labelList &masterProcs, List< label > &agglomProcIDs)
Given fine to coarse processor map determine:
Processor agglomeration of GAMGAgglomerations.
virtual bool agglomerate()=0
Modify agglomeration. Return true if modified.
label nProcs() const noexcept
Number of ranks associated with PstreamBuffers.
T & last()
Return the last element of the list.
static void freeCommunicator(const label communicator, const bool doPstream=true)
Free a previously allocated communicator.
static label allocateCommunicator(const label parent, const labelList &subRanks, const bool doPstream=true)
Allocate a new communicator.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
'Eager' processor agglomeration of GAMGAgglomerations: at every level agglomerates 'mergeLevels' numb...
virtual bool agglomerate()
Modify agglomeration. Return true if modified.
virtual ~eagerGAMGProcAgglomeration()
Destructor.
Abstract base class for meshes which provide LDU addressing for the construction of lduMatrix and LDU...
virtual label comm() const =0
Return communicator used for parallel communication.
int myProcNo() const noexcept
Return processor number.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
runTime controlDict().readEntry("adjustTimeStep"
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.
#define forAllReverse(list, i)
Reverse loop across all elements in list.