Go to the documentation of this file.
48 int main(
int argc,
char *argv[])
58 Info<<
"list:" << list
61 label a[4] = {0, 1, 2, 3};
64 Info<<
"list2:" << list2
67 Info<<
"list: " << list <<
nl
68 <<
"list2: " << list2 <<
endl;
70 Info<<
"Swapped via the swap() method" <<
endl;
71 Info<<
"list: " << list <<
nl
72 <<
"list2: " << list2 <<
endl;
78 Serr<<
"slave sending to master "
97 Serr <<
"master receiving from slave " << slave <<
endl;
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Output inter-processor communications stream.
static bool & parRun()
Is this a parallel run?
Extract command arguments and options from the supplied argc and argv parameters.
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.
OSstream Serr(cerr, "Serr")
static int masterNo()
Process index of the master.
int main(int argc, char *argv[])
static int firstSlave()
Process index of first slave.
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
void swap(FixedList< T, Size > &)
Swap two FixedLists of the same type in constant time.
Input inter-processor communications stream.
Foam::argList args(argc, argv)