78 if (commAndIORanks.
second().empty())
94 return commAndIORanks;
102void Foam::fileOperations::hostCollatedFileOperation::init(
bool verbose)
118 collatedFileOperation
133 const bool distributedRoots,
Macros for easy insertion into run-time selection tables.
#define addNamedToRunTimeSelectionTable(baseType, thisType, argNames, lookupName)
Add to construction table with 'lookupName' as the key.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
const T1 & first() const noexcept
Access the first element.
const T2 & second() const noexcept
Access the second element.
static bool parRun(const bool on) noexcept
Set as parallel run on/off.
static label worldComm
Communicator for all ranks. May differ from commGlobal() if local worlds are in use.
static label newCommunicator(const label parent, const labelRange &subRanks, const bool withComponents=true)
Create new communicator with sub-ranks on the parent communicator.
static void freeCommunicator(const label communicator, const bool withComponents=true)
Free a previously allocated communicator.
An encapsulation of filesystem-related operations.
static labelRange subRanks(const labelUList &mainIOranks)
Get (contiguous) range/bounds of ranks addressed within the given main io-ranks.
static label getManagedComm(const label communicator)
Construction helper: check for locally allocated communicator.
const labelList ioRanks_
The list of IO ranks (global ranks).
label comm_
Communicator to use.
static labelList getGlobalIORanks()
Get list of global IO ranks from FOAM_IORANKS env variable. If set, these correspond to the IO master...
static labelList getGlobalHostIORanks()
Get list of global IO master ranks based on the hostname. It is assumed that each host range is conti...
Version of masterUncollatedFileOperation that collates regIOobjects into a container in the processor...
collatedFileOperation(bool verbose=false)
Default construct.
void printBanner(const bool withRanks=false) const
Print banner information, optionally with io ranks.
A fileOperation initialiser for collated file handlers. Requires threading for non-zero maxThreadFile...
Version of collatedFileOperation with multiple read/write ranks.
hostCollatedFileOperation(bool verbose=false)
Default construct.
virtual void storeComm() const
Transfer ownership of communicator to this fileOperation. Use with caution.
virtual ~hostCollatedFileOperation()
Destructor.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Namespace for implementations of a fileOperation.
int infoDetailLevel
Global for selective suppression of Info output.
static Tuple2< label, labelList > getCommPattern()