Go to the documentation of this file.
37 namespace fileOperations
43 hostCollatedFileOperation,
52 hostCollatedFileOperationInitialise,
62 Foam::labelList Foam::fileOperations::hostCollatedFileOperation::subRanks
67 DynamicList<label> subRanks(64);
70 if (!mainRanks.empty())
72 if (!mainRanks.found(0))
75 <<
"Rank 0 (master) should be in the IO ranks. Currently "
81 const bitSet isIOrank(
n, mainRanks);
92 rank <
n && !isIOrank[rank];
105 const string myHostName(
hostName());
115 if (hosts[proci] == myHostName)
List< label > labelList
A List of labels.
hostCollatedFileOperation(const bool verbose)
static void scatterList(const List< commsStruct > &comms, List< T > &Values, const int tag, const label comm)
addNamedToRunTimeSelectionTable(fileOperationInitialise, collatedFileOperationInitialise, word, collated)
void append(const T &val)
List< string > stringList
A List of strings.
static label allocateCommunicator(const label parent, const labelList &subRanks, const bool doPstream=true)
Inter-processor communications stream.
virtual ~hostCollatedFileOperation()
addToRunTimeSelectionTable(fileOperation, collatedFileOperation, word)
static void freeCommunicator(const label communicator, const bool doPstream=true)
Macros for easy insertion into run-time selection tables.
Version of masterUncollatedFileOperation that collates regIOobjects into a container in the processor...
General fileOperation initialiser. Handles -ioRanks option, using it to set the FOAM_IORANKS environm...
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
static void gatherList(const List< commsStruct > &comms, List< T > &Values, const int tag, const label comm)
static int myProcNo(const label communicator=worldComm)
Inter-processor communications stream.
void printBanner(const bool printRanks=false) const
static bool & parRun() noexcept
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
string hostName(bool full=false)
static labelList ioRanks()
static label nProcs(const label communicator=worldComm)
defineTypeNameAndDebug(collatedFileOperation, 0)