Checks communication using user-defined communicators. More...
Go to the source code of this file.
Functions | |
scalar | sumReduce (const label comm, const scalar localValue) |
int | main (int argc, char *argv[]) |
Checks communication using user-defined communicators.
Original source file Test-parallel-communicators.C
Definition in file Test-parallel-communicators.C.
scalar sumReduce | ( | const label | comm, |
const scalar | localValue | ||
) |
Definition at line 42 of file Test-parallel-communicators.C.
References UPstream::blocking, UPstream::firstSlave(), UPstream::lastSlave(), UPstream::master(), UPstream::masterNo(), UPstream::msgType(), UPstream::parRun(), UIPstream::read(), Foam::sum(), and UOPstream::write().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 127 of file Test-parallel-communicators.C.
References UPstream::allocateCommunicator(), DynamicList::append(), Foam::endl(), UPstream::freeCommunicator(), UPstream::msgType(), UPstream::myProcNo(), n, UPstream::nProcs(), Foam::Pout, Foam::returnReduce(), Foam::sum(), and UPstream::worldComm.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.