Go to the documentation of this file.
47 int main(
int argc,
char *argv[])
66 complexData[i].second().
setSize(3);
67 complexData[i].second()[0] = 1;
68 complexData[i].second()[1] = 2;
69 complexData[i].second()[2] = 3;
79 label procI = complexData[i].first();
92 sendMap[procI].
setSize(nSend[procI]);
97 label procI = complexData[i].first();
98 sendMap[procI][nSend[procI]++] = i;
108 label constructSize = 0;
121 recvMap[procI][i] = constructSize++;
134 Pout<<
"complexData:" << complexData <<
endl;
140 Perr<<
"\nStarting transfers\n" <<
endl;
149 Perr<<
"slave sending to master "
155 Perr<<
"slave receiving from master "
171 Perr <<
"master receiving from slave " << slave <<
endl;
185 Perr <<
"master sending to slave " << slave <<
endl;
Simple random number generator.
int main(int argc, char *argv[])
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
#define forAll(list, i)
Loop across all elements in list.
Xfer< List< T > > xfer()
Transfer contents to the Xfer container.
Output inter-processor communications stream.
static label nProcs(const label communicator=0)
Number of processes in parallel run.
static bool & parRun()
Is this a parallel run?
prefixOSstream Perr(cerr, "Perr")
void combineReduce(const List< UPstream::commsStruct > &comms, T &Value, const CombineOp &cop, const int tag, const label comm)
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
Class containing processor-to-processor mapping information.
static int masterNo()
Process index of the master.
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
static int firstSlave()
Process index of first slave.
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
void setSize(const label)
Reset size of List.
combineReduce operator for lists. Used for counting.
prefixOSstream Pout(cout, "Pout")
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Input inter-processor communications stream.
Database for solution data, solver performance and other reduced data.
cachedRandom rndGen(label(0), -1)