Go to the documentation of this file.
49 os << masterLst[proci];
69 template<
class Type,
class fileOp>
80 Pout<<
"masterUncollatedFileOperation::masterOp : Operation "
81 <<
typeid(fileOp).
name()
82 <<
" on " << fName <<
endl;
90 List<Type> result(filePaths.size());
93 result = fop(filePaths[0]);
94 for (label i = 1; i < filePaths.size(); i++)
96 if (filePaths[i] != filePaths[0])
98 result[i] = fop(filePaths[i]);
103 return scatterList(result, tag, comm);
112 template<
class Type,
class fileOp>
124 Pout<<
"masterUncollatedFileOperation : Operation on src:" << src
125 <<
" dest:" << dest <<
endl;
133 List<fileName> dests(srcs.size());
140 result = fop(srcs[0], dests[0]);
141 for (label i = 1; i < srcs.size(); i++)
143 if (srcs[i] != srcs[0])
145 result[i] = fop(srcs[i], dests[i]);
150 return scatterList(result, tag, comm);
154 return fop(src, dest);
static constexpr int masterNo() noexcept
Output inter-processor communications stream operating on external buffer.
A class for handling file names.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
static bool master(const label communicator=worldComm)
Ostream & endl(Ostream &os)
static rangeType subProcs(const label communicator=worldComm)
void finishedSends(const bool block=true)
OBJstream os(runTime.globalPath()/outputName)
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
static void gatherList(const List< commsStruct > &comms, List< T > &Values, const int tag, const label comm)
static int myProcNo(const label communicator=worldComm)
static bool & parRun() noexcept
word name(const expressions::valueTypeCode typeCode)
Input inter-processor communications stream operating on external buffer.
static label nProcs(const label communicator=worldComm)