Go to the documentation of this file.
48 int main(
int argc,
char *argv[])
59 Perr<<
"\nStarting transfers\n" <<
endl;
72 Perr<<
"slave sending to master "
95 Perr <<
"master receiving from slave " << slave <<
endl;
113 Perr <<
"master sending to slave " << slave <<
endl;
125 Perr<<
"slave receiving from master "
128 fromMaster >> allData;
173 <<
"From processor " << procI <<
" received " <<
data
174 <<
" but expected " << procI
183 Pout<<
"Waiting for non-blocking reduce with request " << request1
187 Info<<
"Reduced data1:" << data1 <<
endl;
191 Pout<<
"Waiting for non-blocking reduce with request " << request1
195 Info<<
"Reduced data2:" << data2 <<
endl;
static void resetRequests(const label sz)
Truncate number of outstanding requests.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Output inter-processor communications stream operating on external buffer.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
int main(int argc, char *argv[])
static label nProcs(const label communicator=0)
Number of processes in parallel run.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
prefixOSstream Perr(cerr, "Perr")
Ostream & endl(Ostream &os)
Add newline and flush stream.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static int lastSlave(const label communicator=0)
Process index of last slave.
static void waitRequest(const label i)
Wait until request i has finished.
static int masterNo()
Process index of the master.
void finishedSends(const bool block=true)
Mark all sends as having been done. This will start receives.
static int firstSlave()
Process index of first slave.
Vector< scalar > vector
A scalar version of the templated Vector.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
static int & msgType()
Message tag of standard messages.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
prefixOSstream Pout(cout, "Pout")
Input inter-processor communications stream operating on external buffer.
Database for solution data, solver performance and other reduced data.