46 os << masterLst[proci];
66 template<
class Type,
class fileOp>
77 Pout<<
"masterUncollatedFileOperation::masterOp : Operation "
78 <<
typeid(fileOp).
name()
79 <<
" on " << fName <<
endl;
90 result = fop(filePaths[0]);
91 for (
label i = 1; i < filePaths.
size(); i++)
93 if (filePaths[i] != filePaths[0])
95 result[i] = fop(filePaths[i]);
100 return scatterList(result, tag, comm);
109 template<
class Type,
class fileOp>
121 Pout<<
"masterUncollatedFileOperation : Operation on src:" << src
122 <<
" dest:" << dest <<
endl;
137 result = fop(srcs[0], dests[0]);
140 if (srcs[i] != srcs[0])
142 result[i] = fop(srcs[i], dests[i]);
147 return scatterList(result, tag, comm);
151 return fop(src, dest);
void size(const label)
Override size to be inconsistent with allocated storage.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
void finishedSends(const bool block=true)
Mark all sends as having been done. This will start receives.
static void gatherList(const List< commsStruct > &comms, List< T > &Values, const int tag, const label comm)
Gather data but keep individual values separate.
Input inter-processor communications stream operating on external buffer.
Output inter-processor communications stream operating on external buffer.
static int masterNo()
Process index of the master.
static bool master(const label communicator=0)
Am I the master process.
static label nProcs(const label communicator=0)
Number of processes in parallel run.
static bool & parRun()
Is this a parallel run?
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
A class for handling file names.
Type masterOp(const fileName &, const fileOp &fop, const int tag, const label comm) const
Type scatterList(const UList< Type > &, const int, const label comm) const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
prefixOSstream Pout(cout, "Pout")