Inter-processor communications stream. More...
Classes | |
class | commsStruct |
Structure for communicating between processors. More... | |
class | communicator |
Wrapper class for allocating/freeing communicators. More... | |
struct | listEq |
combineReduce operator for lists. Used for counting. More... | |
Public Types | |
enum | commsTypes : char { blocking, scheduled, nonBlocking } |
Types of communications. More... | |
typedef IntRange< int > | rangeType |
Int ranges are used for MPI ranks (processes) More... | |
Public Member Functions | |
ClassName ("UPstream") | |
Declare name of the class and its debug switch. More... | |
UPstream (const commsTypes commsType) | |
Construct for given communication type. More... | |
commsTypes | commsType () const noexcept |
Get the communications type of the stream. More... | |
commsTypes | commsType (const commsTypes ct) noexcept |
Set the communications type of the stream. More... | |
template<class T > | |
Foam::List< T > | listGatherValues (const T &localValue, const label comm) |
Static Public Member Functions | |
static label | nComms () noexcept |
Number of currently defined communicators. More... | |
static bool | isUserComm (label communicator) noexcept |
True if communicator appears to be user-allocated. More... | |
static label | allocateCommunicator (const label parent, const labelUList &subRanks, const bool doPstream=true) |
Allocate a new communicator with subRanks of parent communicator. More... | |
static void | freeCommunicator (const label communicator, const bool doPstream=true) |
Free a previously allocated communicator. More... | |
static void | freeCommunicators (const bool doPstream) |
Free all communicators. More... | |
static int | baseProcNo (label comm, int procID) |
Return physical processor number (i.e. processor number in worldComm) given communicator and processor. More... | |
static label | procNo (const label comm, const int baseProcID) |
Return processor number in communicator (given physical processor number) (= reverse of baseProcNo) More... | |
static label | procNo (const label comm, const label currentComm, const int currentProcID) |
Return processor number in communicator (given processor number and communicator) More... | |
static void | addValidParOptions (HashTable< string > &validParOptions) |
Add the valid option this type of communications library adds/requires on the command line. More... | |
static bool | init (int &argc, char **&argv, const bool needsThread) |
Initialisation function called from main. More... | |
static bool | initNull () |
Special purpose initialisation function. More... | |
static label | nRequests () noexcept |
Number of outstanding requests. More... | |
static void | resetRequests (const label n) |
Truncate outstanding requests to given length. More... | |
static void | waitRequests (const label start=0) |
Wait until all requests (from start onwards) have finished. More... | |
static void | waitRequest (const label i) |
Wait until request i has finished. More... | |
static bool | finishedRequest (const label i) |
Non-blocking comms: has request i finished? More... | |
static int | allocateTag (const char *const msg=nullptr) |
static void | freeTag (const int tag, const char *const msg=nullptr) |
static bool | parRun (const bool on) noexcept |
Set as parallel run on/off. More... | |
static bool & | parRun () noexcept |
Test if this a parallel run. More... | |
static bool | haveThreads () noexcept |
Have support for threads. More... | |
static label | nProcs (const label communicator=worldComm) |
Number of ranks in parallel run (for given communicator) is 1 for serial run. More... | |
static constexpr int | masterNo () noexcept |
Process index of the master (always 0) More... | |
static bool | master (const label communicator=worldComm) |
Am I the master rank. More... | |
static bool | is_subrank (const label communicator=worldComm) |
Is this process a sub-rank on the communicator. More... | |
static int | myProcNo (const label communicator=worldComm) |
Number of this process (starting from masterNo() = 0) More... | |
static label | parent (const label communicator) |
The parent communicator. More... | |
static List< int > & | procID (const label communicator) |
Process IDs within a given communicator. More... | |
static const wordList & | allWorlds () noexcept |
All worlds. More... | |
static const labelList & | worldIDs () noexcept |
The indices into allWorlds for all processes. More... | |
static label | myWorldID () |
My worldID. More... | |
static const word & | myWorld () |
My world. More... | |
static rangeType | allProcs (const label communicator=worldComm) |
Range of process indices for all processes. More... | |
static rangeType | subProcs (const label communicator=worldComm) |
Range of process indices for sub-processes. More... | |
static const List< commsStruct > & | linearCommunication (const label communicator=worldComm) |
Communication schedule for linear all-to-master (proc 0) More... | |
static const List< commsStruct > & | treeCommunication (const label communicator=worldComm) |
Communication schedule for tree all-to-master (proc 0) More... | |
static const List< commsStruct > & | whichCommunication (const label communicator=worldComm) |
Communication schedule for linear/tree all-to-master (proc 0). Chooses based on the value of UPstream::nProcsSimpleSum. More... | |
static int & | msgType () noexcept |
Message tag of standard messages. More... | |
static void | shutdown (int errNo=0) |
Shutdown (finalize) MPI as required. More... | |
static void | abort () |
Call MPI_Abort with no other checks or cleanup. More... | |
static void | exit (int errNo=1) |
Shutdown (finalize) MPI as required and exit program with errNo. More... | |
static void | allToAll (const UList< int32_t > &sendData, UList< int32_t > &recvData, const label communicator=worldComm) |
Exchange integer data with all processors (in the communicator). More... | |
static void | allToAll (const UList< int64_t > &sendData, UList< int64_t > &recvData, const label communicator=worldComm) |
Exchange integer data with all processors (in the communicator). More... | |
static void | mpiGather (const char *sendData, int sendCount, char *recvData, int recvCount, const label communicator=worldComm) |
Receive identically-sized char data from all ranks. More... | |
static void | mpiScatter (const char *sendData, int sendCount, char *recvData, int recvCount, const label communicator=worldComm) |
Send identically-sized char data to all ranks. More... | |
static void | gather (const char *sendData, int sendCount, char *recvData, const UList< int > &recvCounts, const UList< int > &recvOffsets, const label communicator=worldComm) |
Receive variable length char data from all ranks. More... | |
static void | scatter (const char *sendData, const UList< int > &sendCounts, const UList< int > &sendOffsets, char *recvData, int recvCount, const label communicator=worldComm) |
Send variable length char data to all ranks. More... | |
static void | gather (const int32_t *sendData, int sendCount, int32_t *recvData, const UList< int > &recvCounts, const UList< int > &recvOffsets, const label communicator=worldComm) |
Receive variable length int32_t data from all ranks. More... | |
static void | scatter (const int32_t *sendData, const UList< int > &sendCounts, const UList< int > &sendOffsets, int32_t *recvData, int recvCount, const label communicator=worldComm) |
Send variable length int32_t data to all ranks. More... | |
static void | gather (const int64_t *sendData, int sendCount, int64_t *recvData, const UList< int > &recvCounts, const UList< int > &recvOffsets, const label communicator=worldComm) |
Receive variable length int64_t data from all ranks. More... | |
static void | scatter (const int64_t *sendData, const UList< int > &sendCounts, const UList< int > &sendOffsets, int64_t *recvData, int recvCount, const label communicator=worldComm) |
Send variable length int64_t data to all ranks. More... | |
static void | gather (const uint32_t *sendData, int sendCount, uint32_t *recvData, const UList< int > &recvCounts, const UList< int > &recvOffsets, const label communicator=worldComm) |
Receive variable length uint32_t data from all ranks. More... | |
static void | scatter (const uint32_t *sendData, const UList< int > &sendCounts, const UList< int > &sendOffsets, uint32_t *recvData, int recvCount, const label communicator=worldComm) |
Send variable length uint32_t data to all ranks. More... | |
static void | gather (const uint64_t *sendData, int sendCount, uint64_t *recvData, const UList< int > &recvCounts, const UList< int > &recvOffsets, const label communicator=worldComm) |
Receive variable length uint64_t data from all ranks. More... | |
static void | scatter (const uint64_t *sendData, const UList< int > &sendCounts, const UList< int > &sendOffsets, uint64_t *recvData, int recvCount, const label communicator=worldComm) |
Send variable length uint64_t data to all ranks. More... | |
static void | gather (const float *sendData, int sendCount, float *recvData, const UList< int > &recvCounts, const UList< int > &recvOffsets, const label communicator=worldComm) |
Receive variable length float data from all ranks. More... | |
static void | scatter (const float *sendData, const UList< int > &sendCounts, const UList< int > &sendOffsets, float *recvData, int recvCount, const label communicator=worldComm) |
Send variable length float data to all ranks. More... | |
static void | gather (const double *sendData, int sendCount, double *recvData, const UList< int > &recvCounts, const UList< int > &recvOffsets, const label communicator=worldComm) |
Receive variable length double data from all ranks. More... | |
static void | scatter (const double *sendData, const UList< int > &sendCounts, const UList< int > &sendOffsets, double *recvData, int recvCount, const label communicator=worldComm) |
Send variable length double data to all ranks. More... | |
template<class T > | |
static List< T > | listGatherValues (const T &localValue, const label communicator=worldComm) |
Gather individual values into list locations. More... | |
template<class T > | |
static T | listScatterValues (const UList< T > &allValues, const label communicator=worldComm) |
Scatter individual values from list locations. More... | |
static bool | broadcast (char *buf, const std::streamsize bufSize, const label communicator=worldComm, const int rootProcNo=masterNo()) |
Broadcast buffer contents to all processes in communicator. The sizes must match on all processes. More... | |
static void | reduceAnd (bool &value, const label communicator=worldComm) |
Logical (and) reduction (cf. MPI AllReduce) More... | |
static void | reduceOr (bool &value, const label communicator=worldComm) |
Logical (or) reduction (cf. MPI AllReduce) More... | |
static constexpr int | firstSlave () noexcept |
Process index of first sub-process. More... | |
static int | lastSlave (const label communicator=worldComm) |
Process index of last sub-process. More... | |
Static Public Attributes | |
static const Enum< commsTypes > | commsTypeNames |
Enumerated names for the communication types. More... | |
static bool | floatTransfer |
Should compact transfer be used in which floats replace doubles reducing the bandwidth requirement at the expense of some loss in accuracy. More... | |
static int | nProcsSimpleSum |
Number of processors to change from linear to tree communication. More... | |
static commsTypes | defaultCommsType |
Default commsType. More... | |
static int | nPollProcInterfaces |
Number of polling cycles in processor updates. More... | |
static int | maxCommsSize |
Optional maximum message size (bytes) More... | |
static const int | mpiBufferSize |
MPI buffer-size (bytes) More... | |
static label | worldComm |
Default world communicator (all processors). May differ from globalComm if local worlds are in use. More... | |
static label | warnComm |
Debugging: warn for use of any communicator differing from warnComm. More... | |
static constexpr label | globalComm = 0 |
Communicator for all processors, irrespective of any local worlds. More... | |
static constexpr label | selfComm = 1 |
A communicator within the current rank only. More... | |
Int ranges are used for MPI ranks (processes)
Definition at line 61 of file UPstream.H.
|
strong |
Types of communications.
Enumerator | |
---|---|
blocking | "blocking" : (MPI_Bsend, MPI_Recv) |
scheduled | "scheduled" : (MPI_Send, MPI_Recv) |
nonBlocking | "nonBlocking" : (MPI_Isend, MPI_Irecv) |
Definition at line 66 of file UPstream.H.
|
inlineexplicit |
Construct for given communication type.
Definition at line 397 of file UPstream.H.
ClassName | ( | "UPstream" | ) |
Declare name of the class and its debug switch.
|
inlinestaticnoexcept |
Number of currently defined communicators.
Definition at line 381 of file UPstream.H.
References UList< T >::size().
|
inlinestaticnoexcept |
True if communicator appears to be user-allocated.
Definition at line 386 of file UPstream.H.
References UPstream::selfComm, and UPstream::worldComm.
Referenced by collatedFileOperation::~collatedFileOperation(), hostCollatedFileOperation::~hostCollatedFileOperation(), masterUncollatedFileOperation::~masterUncollatedFileOperation(), and uncollatedFileOperation::~uncollatedFileOperation().
|
static |
Allocate a new communicator with subRanks of parent communicator.
if (myProcNo_[index] < 0 && parentIndex >= 0) { // As global rank myProcNo_[index] = -(myProcNo_[worldComm]+1);
OR: // As parent rank number if (myProcNo_[parentIndex] >= 0) { myProcNo_[index] = -(myProcNo_[parentIndex]+1); } }
parent | The parent communicator |
subRanks | The sub-ranks of parent to use (ignore negative values) |
doPstream | Call allocatePstreamCommunicator |
Definition at line 139 of file UPstream.C.
References Foam::ensightOutput::debug, Foam::endl(), Foam::Pout, UList< T >::size(), and Foam::sort().
Referenced by eagerGAMGProcAgglomeration::agglomerate(), masterCoarsestGAMGProcAgglomeration::agglomerate(), manualGAMGProcAgglomeration::agglomerate(), procFacesGAMGProcAgglomeration::agglomerate(), UPstream::communicator::reset(), and globalMeshData::updateMesh().
|
static |
Free a previously allocated communicator.
Ignores placeholder (negative) communicators.
Definition at line 239 of file UPstream.C.
References Foam::ensightOutput::debug, Foam::endl(), and Foam::Pout.
Referenced by UPstream::communicator::reset(), globalMeshData::updateMesh(), collatedFileOperation::~collatedFileOperation(), UPstream::communicator::~communicator(), eagerGAMGProcAgglomeration::~eagerGAMGProcAgglomeration(), hostCollatedFileOperation::~hostCollatedFileOperation(), manualGAMGProcAgglomeration::~manualGAMGProcAgglomeration(), masterCoarsestGAMGProcAgglomeration::~masterCoarsestGAMGProcAgglomeration(), masterUncollatedFileOperation::~masterUncollatedFileOperation(), OFstreamCollator::~OFstreamCollator(), procFacesGAMGProcAgglomeration::~procFacesGAMGProcAgglomeration(), and uncollatedFileOperation::~uncollatedFileOperation().
|
static |
|
static |
Return physical processor number (i.e. processor number in worldComm) given communicator and processor.
Definition at line 286 of file UPstream.C.
References UPstream::procID().
Referenced by UPstream::procNo().
|
static |
Return processor number in communicator (given physical processor number) (= reverse of baseProcNo)
Definition at line 299 of file UPstream.C.
|
static |
Return processor number in communicator (given processor number and communicator)
Definition at line 316 of file UPstream.C.
References UPstream::baseProcNo().
Add the valid option this type of communications library adds/requires on the command line.
Definition at line 26 of file UPstream.C.
|
static |
Initialisation function called from main.
Spawns sub-processes and initialises inter-communication
Definition at line 40 of file UPstream.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
Referenced by ParRunControl::runPar().
|
static |
Special purpose initialisation function.
Performs a basic MPI_Init without any other setup. Only used for applications that need MPI communication when OpenFOAM is running in a non-parallel mode.
Definition at line 30 of file UPstream.C.
References Foam::endl(), and WarningInFunction.
|
staticnoexcept |
Number of outstanding requests.
Definition at line 83 of file UPstream.C.
Referenced by cellCellStencil::correctBoundaryConditions(), oversetFvMeshBase::correctCoupledBoundaryConditions(), Foam::evaluateConstraintTypes(), Pstream::exchangeSizes(), syncTools::syncBoundaryFaceList(), syncTools::syncFaceList(), and OFstreamCollator::write().
|
static |
Truncate outstanding requests to given length.
Definition at line 89 of file UPstream.C.
|
static |
Wait until all requests (from start onwards) have finished.
A no-op if parRun() == false
Definition at line 93 of file UPstream.C.
Referenced by cellCellStencil::correctBoundaryConditions(), oversetFvMeshBase::correctCoupledBoundaryConditions(), Foam::evaluateConstraintTypes(), Pstream::exchangeSizes(), syncTools::syncBoundaryFaceList(), syncTools::syncFaceList(), and OFstreamCollator::write().
|
static |
Wait until request i has finished.
A no-op if parRun() == false or for placeholder (negative) request indices
Definition at line 97 of file UPstream.C.
Referenced by PPCG::scalarSolveCG().
|
static |
Non-blocking comms: has request i finished?
A no-op and returns true if parRun() == false or for placeholder (negative) request indices
Definition at line 101 of file UPstream.C.
|
static |
Definition at line 817 of file UPstream.C.
References UList< T >::back(), Foam::ensightOutput::debug, Foam::endl(), Foam::PstreamGlobals::freedTags_, Foam::PstreamGlobals::nTags_, DynamicList< T, SizeMin >::pop_back(), and Foam::Pout.
|
static |
Definition at line 841 of file UPstream.C.
References Foam::ensightOutput::debug, Foam::endl(), Foam::PstreamGlobals::freedTags_, Foam::Pout, and DynamicList< T, SizeMin >::push_back().
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
Test if this a parallel run.
Modify access is deprecated
Definition at line 639 of file UPstream.H.
Referenced by snappyLayerDriver::addLayers(), unwatchedIOdictionary::addWatch(), regIOobject::addWatch(), meshRefinement::balance(), Pstream::broadcast(), Pstream::broadcasts(), addPatchCellLayer::calcExtrudeInfo(), processorCyclicPolyPatch::calcGeometry(), processorPolyPatch::calcGeometry(), processorFaPatch::calcGeometry(), surfaceNoise::calculate(), cyclicAMIPolyPatch::canResetAMI(), IOobjectList::checkNames(), faBoundaryMesh::checkParallelSync(), polyBoundaryMesh::checkParallelSync(), AMIInterpolation::checkSymmetricWeights(), fieldValue::combineFields(), cellCellStencil::correctBoundaryConditions(), meshRefinement::countEdgeFaces(), processorFvPatch::coupled(), cyclicAMIPointPatch::coupled(), processorPointPatchField< Type >::coupled(), processorCyclicPointPatchField< Type >::coupled(), processorFvsPatchField< Type >::coupled(), processorFaePatchField< Type >::coupled(), processorCyclicFvsPatchField< Type >::coupled(), processorFaPatchField< Type >::coupled(), processorFvPatchField< Type >::coupled(), cyclicACMIFvPatch::coupled(), cyclicAMIFvPatch::coupled(), processorFaPatch::coupled(), calculatedProcessorFvPatchField< Type >::coupled(), processorPolyPatch::coupled(), multiWorldConnections::createComms(), simpleGeomDecomp::decompose(), decompositionMethod::decompose(), conformalVoronoiMesh::decomposition(), processorFvPatch::delta(), processorFaPatch::delta(), masterUncollatedFileOperation::dirPath(), refinementHistory::distribute(), fvMeshDistribute::distribute(), distributedTriSurfaceMesh::distribute(), distributedTriSurfaceMesh::distributedTriSurfaceMesh(), snappyLayerDriver::doLayers(), snappyRefineDriver::doRefine(), ensightSurfaceReader::ensightSurfaceReader(), Pstream::exchange(), Foam::exitNow(), faMeshReconstructor::faMeshReconstructor(), masterUncollatedFileOperation::filePath(), polyMesh::findCell(), masterUncollatedFileOperation::findInstance(), distributedTriSurfaceMesh::findLine(), distributedTriSurfaceMesh::findLineAll(), distributedTriSurfaceMesh::findLineAny(), distributedTriSurfaceMesh::findNearest(), masterUncollatedFileOperation::findTimes(), ensightSurfaceReader::geometry(), zoneDistribute::getDatafromOtherProc(), distributedTriSurfaceMesh::getField(), distributedTriSurfaceMesh::getNormal(), distributedTriSurfaceMesh::getRegion(), distributedTriSurfaceMesh::getVolumeType(), faMeshBoundaryHalo::haloSize(), InflationInjection< CloudType >::InflationInjection(), faMesh::init(), processorPolyPatch::initGeometry(), processorFaPatch::initGeometry(), InjectedParticleInjection< CloudType >::initialise(), InjectedParticleDistributionInjection< CloudType >::initialise(), extractEulerianParticles::initialiseBins(), processorPolyPatch::initOrder(), processorPolyPatch::initUpdateMesh(), processorFaPatch::initUpdateMesh(), faMeshTools::loadOrCreateMesh(), fvMeshTools::loadOrCreateMesh(), fileOperation::lookupAndCacheProcessorsPath(), LUscalarMatrix::LUscalarMatrix(), processorFaPatch::makeDeltaCoeffs(), processorFaPatch::makeNonGlobalPatchPoints(), processorFvPatch::makeWeights(), processorFaPatch::makeWeights(), error::master(), mergedSurf::merge(), surfaceWriter::merge(), surfaceWriter::mergeFieldTemplate(), polyBoundaryMesh::neighbourEdges(), masterUncollatedFileOperation::NewIFstream(), faMeshTools::newMesh(), fvMeshTools::newMesh(), fileWriter::open(), processorPolyPatch::order(), InflationInjection< CloudType >::parcelsToInject(), argList::parse(), collatedFileOperation::processorsDir(), surfaceNoise::read(), uncollatedFileOperation::read(), masterUncollatedFileOperation::read(), lumpedPointState::readData(), Time::readModifiedObjects(), masterUncollatedFileOperation::readObjects(), masterUncollatedFileOperation::readStream(), surfaceNoise::readSurfaceData(), Foam::reduce(), AMIWeights::reportPatch(), faMeshBoundaryHalo::reset(), globalIndex::reset(), fvMeshSubset::reset(), mapDistributeBase::schedule(), Time::setControls(), surfaceWriter::setSurface(), zoneDistribute::setUpCommforZone(), globalMeshData::sharedPoints(), shortestPathSet::shortestPathSet(), error::simpleExit(), messageStream::stream(), Foam::sumReduce(), surfaceWriter::surface(), surfaceNoise::surfaceAverage(), syncObjects::sync(), syncTools::syncEdgeMap(), syncTools::syncPointMap(), triSurfaceMesh::triSurfaceMesh(), fileOperation::uniformFile(), turbulentDFSEMInletFvPatchVectorField::updateCoeffs(), processorPolyPatch::updateMesh(), processorFaPatch::updateMesh(), faMesh::updateMesh(), fileOperation::updateStates(), energySpectrum::write(), ensightCells::write(), vtkWrite::write(), meshToMeshMethod::writeConnectivity(), AMIWeights::writeFileHeader(), fieldMinMax::writeFileHeader(), isoAdvection::writeIsoFaces(), faMeshReconstructor::writeMesh(), patchMeshWriter::writeNeighIDs(), collatedFileOperation::writeObject(), fileWriter::writeProcIDs(), surfaceNoise::writeSurfaceData(), and streamLineBase::writeToFile().
|
inlinestaticnoexcept |
Have support for threads.
Definition at line 647 of file UPstream.H.
Referenced by OFstreamCollator::write().
|
inlinestatic |
Number of ranks in parallel run (for given communicator) is 1 for serial run.
Definition at line 656 of file UPstream.H.
References UList< T >::size().
Referenced by surfaceZonesInfo::addCellZonesToMesh(), surfaceZonesInfo::addFaceZonesToMesh(), eagerGAMGProcAgglomeration::agglomerate(), masterCoarsestGAMGProcAgglomeration::agglomerate(), manualGAMGProcAgglomeration::agglomerate(), procFacesGAMGProcAgglomeration::agglomerate(), UPstream::allProcs(), sensitivitySurfacePoints::assembleSensitivities(), meshRefinement::balanceAndRefine(), faPatch::boundaryProcs(), faMesh::boundaryProcs(), faPatch::boundaryProcSizes(), faMesh::boundaryProcSizes(), Pstream::broadcast(), Pstream::broadcasts(), mapDistributeBase::calcCompactAddressing(), surfaceNoise::calculate(), meshRefinement::checkCoupledFaceZones(), mappedPatchBase::collectSamples(), fieldValue::combineFields(), sizeDistribution::combineFields(), UPstream::commsStruct::commsStruct(), GAMGAgglomeration::continueAgglomerating(), fvMeshDistribute::countCells(), Foam::createReconstructMap(), meshRefinement::directionalRefineCandidates(), fvMeshDistribute::distribute(), distributedTriSurfaceMesh::distribute(), Pstream::exchange(), mapDistributeBase::exchangeAddressing(), Pstream::exchangeSizes(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), distributedTriSurfaceMesh::findNearest(), mappedPatchBase::findSamples(), externalCoupled::gatherAndCombine(), distributedTriSurfaceMesh::getVolumeType(), processorPolyPatch::initGeometry(), processorFaPatch::initGeometry(), InjectedParticleInjection< CloudType >::initialise(), InjectedParticleDistributionInjection< CloudType >::initialise(), viewFactor::initialise(), processorPolyPatch::initUpdateMesh(), processorFaPatch::initUpdateMesh(), UPstream::lastSlave(), distributedTriSurfaceMesh::localQueries(), LUscalarMatrix::LUscalarMatrix(), mapDistributeBase::mapDistributeBase(), masterUncollatedFileOperation::NewIFstream(), InflationInjection< CloudType >::parcelsToInject(), argList::parse(), pointHistory::pointHistory(), mapDistributeBase::printLayout(), collatedFileOperation::processorsDir(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readStream(), meshRefinement::refineAndBalance(), meshRefinement::refineCandidates(), Foam::regionSum(), meshRefinement::removeGapCells(), parProfiling::report(), faMeshBoundaryHalo::reset(), globalIndex::reset(), fvMeshSubset::reset(), mapDistributeBase::schedule(), Time::setControls(), zoneDistribute::setUpCommforZone(), ParSortableList< Type >::sort(), UPstream::subProcs(), trackingInverseDistance::update(), inverseDistance::update(), oversetFvMeshBase::updateAddressing(), turbulentDFSEMInletFvPatchVectorField::updateCoeffs(), globalMeshData::updateMesh(), UPstream::whichCommunication(), externalCoupled::writeGeometry(), isoAdvection::writeIsoFaces(), and streamLineBase::writeToFile().
|
inlinestaticnoexcept |
Process index of the master (always 0)
Definition at line 664 of file UPstream.H.
Referenced by Pstream::broadcast(), Pstream::broadcasts(), Foam::createReconstructMap(), UPstream::is_subrank(), LUscalarMatrix::LUscalarMatrix(), UPstream::master(), masterUncollatedFileOperation::NewIFstream(), argList::parse(), uncollatedFileOperation::read(), masterUncollatedFileOperation::read(), masterUncollatedFileOperation::readHeader(), mapDistributeBase::schedule(), globalMeshData::sharedPoints(), syncTools::syncEdgeMap(), syncTools::syncPointMap(), energySpectrum::write(), patchMeshWriter::writeNeighIDs(), patchMeshWriter::writePatchIDs(), and patchMeshWriter::writePoints().
|
inlinestatic |
Am I the master rank.
Definition at line 672 of file UPstream.H.
References UPstream::masterNo().
Referenced by regIOobject::addWatch(), masterUncollatedFileOperation::addWatch(), Pstream::broadcast(), Pstream::broadcasts(), mappedPatchBase::calcMapping(), pointNoise::calculate(), viewFactor::calculate(), surfaceNoise::calculate(), writeFile::canResetFile(), writeFile::canWriteHeader(), writeFile::canWriteToFile(), argList::check(), fileWriter::checkFormatterValidity(), argList::checkRootCase(), extractEulerianParticles::collectParticle(), sizeDistribution::combineFields(), logFiles::createFiles(), Foam::createReconstructMap(), simpleGeomDecomp::decompose(), masterUncollatedFileOperation::dirPath(), systemCall::dispatch(), distributedTriSurfaceMesh::distribute(), distributedTriSurfaceMesh::distributedTriSurfaceMesh(), snappyVoxelMeshDriver::doRefine(), abort::end(), ensightSurfaceReader::ensightSurfaceReader(), abort::execute(), wallHeatFlux::execute(), Curle::execute(), momentum::execute(), externalFileCoupler::externalFileCoupler(), masterUncollatedFileOperation::filePath(), logFiles::files(), probes::findElements(), masterUncollatedFileOperation::findInstance(), masterUncollatedFileOperation::findTimes(), masterUncollatedFileOperation::findWatch(), STDMD::fit(), externalCoupled::gatherAndCombine(), coordSet::gatherSort(), ensightSurfaceReader::geometry(), masterUncollatedFileOperation::getFile(), masterUncollatedFileOperation::getState(), Random::globalGaussNormal(), Random::globalPosition(), Random::globalRandomise01(), Random::globalSample01(), surfaceNoise::initialise(), viewFactor::initialise(), JobInfo::JobInfo(), faMeshTools::loadOrCreateMesh(), fvMeshTools::loadOrCreateMesh(), fileOperation::lookupAndCacheProcessorsPath(), LUscalarMatrix::LUscalarMatrix(), NURBS3DVolume::makeFolders(), error::master(), messageStream::masterStream(), surfaceWriter::mergeFieldTemplate(), ensightCase::newCloud(), writeFile::newFile(), writeFile::newFileAtTime(), ensightCase::newGeometry(), masterUncollatedFileOperation::NewIFstream(), faMeshTools::newMesh(), fvMeshTools::newMesh(), fileOperation::nProcs(), objectiveManager::objectiveManager(), fileWriter::open(), InflationInjection< CloudType >::parcelsToInject(), argList::parse(), pointHistory::pointHistory(), porosityModel::porosityModel(), probes::prepare(), meshRefinement::printMeshInfo(), pointNoise::processData(), timeActivatedFileUpdate::read(), decomposedBlockData::read(), writeFile::read(), uncollatedFileOperation::read(), sampledSets::read(), externalCoupled::read(), sampledSurfaces::read(), masterUncollatedFileOperation::read(), baseIOdictionary::readData(), lumpedPointState::readData(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readObjects(), masterUncollatedFileOperation::readStream(), surfaceNoise::readSurfaceData(), externalCoupled::removeDataMaster(), externalCoupled::removeDataSlave(), masterUncollatedFileOperation::removeWatch(), parProfiling::report(), globalIndex::reset(), logFiles::resetNames(), mapDistributeBase::schedule(), faMatrix< Type >::setReference(), ensightCase::setTime(), masterUncollatedFileOperation::setUnmodified(), globalMeshData::sharedPoints(), shortestPathSet::shortestPathSet(), externalFileCoupler::shutdown(), snappyVoxelMeshDriver::snappyVoxelMeshDriver(), rigidBodyMeshMotionSolver::solve(), rigidBodyMeshMotion::solve(), rigidBodyMotion::solve(), ParSortableList< Type >::sort(), SQP::SQP(), messageStream::stream(), surfaceNoise::surfaceAverage(), hexRef8Data::sync(), syncTools::syncEdgeMap(), syncTools::syncPointMap(), triSurfaceMesh::triSurfaceMesh(), sixDoFRigidBodyMotion::update(), lumpedPointDisplacementPointPatchVectorField::updateCoeffs(), activePressureForceBaffleVelocityFvPatchVectorField::updateCoeffs(), electrostaticDepositionFvPatchScalarField::updateCoeffs(), updateMethod::updateMethod(), fileMonitor::updateStates(), masterUncollatedFileOperation::updateStates(), solution::upgradeSolverDict(), externalFileCoupler::useMaster(), externalFileCoupler::useSlave(), OFstreamCollator::waitAll(), externalFileCoupler::waitForMaster(), externalFileCoupler::waitForSlave(), histogramModel::write(), sensitivityBezier::write(), sensitivityVolBSplines::write(), sensitivityVolBSplinesFI::write(), sensitivityBezierFI::write(), proxyWriter::write(), timeInfo::write(), debugWriter::write(), energySpectrum::write(), x3dWriter::write(), starcdWriter::write(), OFstreamCollator::write(), yPlus::write(), rawWriter::write(), foamWriter::write(), SQP::write(), wallShearStress::write(), referenceTemperature::write(), abaqusWriter::write(), vtkWriter::write(), boundaryDataWriter::write(), nastranWriter::write(), vtkCloud::write(), sizeDistribution::write(), NURBS3DCurve::write(), effectivenessTable::write(), objective::write(), volFieldValue::write(), vtkWrite::write(), regionSizeDistribution::write(), NURBS3DSurface::write(), surfaceFieldValue::write(), propellerInfo::writeAxialWake(), ensightWriter::writeCollated(), updateMethod::writeCorrection(), NURBS3DVolume::writeCps(), decomposedBlockData::writeData(), lumpedPointMovement::writeData(), lumpedPointMovement::writeForcesAndMomentsVTP(), externalCoupled::writeGeometry(), objective::writeInstantaneousSeparator(), objective::writeInstantaneousValue(), isoAdvection::writeIsoFaces(), objective::writeMeanValue(), faMeshReconstructor::writeMesh(), patchMeshWriter::writeNeighIDs(), collatedFileOperation::writeObject(), decomposedBlockData::writeObject(), patchMeshWriter::writePatchIDs(), patchMeshWriter::writePoints(), fileWriter::writeProcIDs(), surfaceNoise::writeSurfaceData(), foamWriter::writeTemplate(), starcdWriter::writeTemplate(), boundaryDataWriter::writeTemplate(), x3dWriter::writeTemplate(), vtkWriter::writeTemplate(), debugWriter::writeTemplate(), streamLineBase::writeToFile(), ensightWriter::writeUncollated(), NURBS3DSurface::writeVTK(), propellerInfo::writeWake(), AMIWeights::writeWeightField(), NURBS3DCurve::writeWParses(), and NURBS3DSurface::writeWParses().
|
inlinestatic |
Is this process a sub-rank on the communicator.
Definition at line 680 of file UPstream.H.
References UPstream::masterNo().
|
inlinestatic |
Number of this process (starting from masterNo() = 0)
Definition at line 688 of file UPstream.H.
Referenced by surfaceZonesInfo::addCellZonesToMesh(), surfaceZonesInfo::addFaceZonesToMesh(), eagerGAMGProcAgglomeration::agglomerate(), masterCoarsestGAMGProcAgglomeration::agglomerate(), manualGAMGProcAgglomeration::agglomerate(), sensitivitySurfacePoints::assembleSensitivities(), faPatch::boundaryProcs(), faMesh::boundaryProcs(), faPatch::boundaryProcSizes(), faMesh::boundaryProcSizes(), mapDistributeBase::calcCompactAddressing(), viewFactor::calculate(), GAMGAgglomeration::calculateRegionMaster(), meshRefinement::checkCoupledFaceZones(), mappedPatchBase::collectSamples(), fieldValue::combineFields(), sizeDistribution::combineFields(), Foam::createReconstructMap(), noDecomp::decompose(), fvMeshDistribute::distribute(), distributedTriSurfaceMesh::distribute(), Pstream::exchange(), mapDistributeBase::exchangeAddressing(), processorField::execute(), InjectionModel< CloudType >::findCellAtPosition(), patchProbes::findElements(), probes::findElements(), mappedPatchBase::findLocalSamples(), distributedTriSurfaceMesh::findNearest(), mappedPatchBase::findSamples(), lduPrimitiveMesh::gather(), globalIndex::gather(), externalCoupled::gatherAndCombine(), zoneDistribute::getDatafromOtherProc(), InjectedParticleInjection< CloudType >::initialise(), InjectedParticleDistributionInjection< CloudType >::initialise(), viewFactor::initialise(), globalIndex::inplaceToGlobal(), globalIndex::isLocal(), lduPrimitiveMesh::lduPrimitiveMesh(), faMeshTools::loadOrCreateMesh(), fvMeshTools::loadOrCreateMesh(), distributedTriSurfaceMesh::localQueries(), globalIndex::localSize(), globalIndex::localStart(), mapDistribute::mapDistribute(), mapDistributeBase::mapDistributeBase(), globalIndex::maxNonLocalSize(), UPstream::myWorld(), UPstream::myWorldID(), masterUncollatedFileOperation::NewIFstream(), regionSplit::nLocalRegions(), InflationInjection< CloudType >::parcelsToInject(), argList::parse(), pointHistory::pointHistory(), mapDistributeBase::printLayout(), backgroundMeshDecomposition::procBounds(), globalIndex::range(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readStream(), indexedVertex< Gt, Vb >::referred(), parProfiling::report(), faMeshBoundaryHalo::reset(), globalIndex::reset(), fvMeshSubset::reset(), mapDistributeBase::schedule(), Time::setControls(), patchInjectionBase::setPositionAndCell(), zoneDistribute::setUpCommforZone(), ParSortableList< Type >::sort(), KinematicSurfaceFilm< CloudType >::splashInteraction(), globalIndex::toGlobal(), globalIndex::toLocal(), trackingInverseDistance::update(), inverseDistance::update(), oversetFvMeshBase::updateAddressing(), patchInjectionBase::updateMesh(), processorField::updateMesh(), propellerInfo::updateSampleDiskCells(), globalIndex::whichProcID(), meshToMeshMethod::writeConnectivity(), AMIInterpolation::writeFaceConnectivity(), externalCoupled::writeGeometry(), isoAdvection::writeIsoFaces(), and fileWriter::writeProcIDs().
|
inlinestatic |
The parent communicator.
Definition at line 696 of file UPstream.H.
Referenced by UPstream::communicator::reset().
|
inlinestatic |
Process IDs within a given communicator.
Definition at line 704 of file UPstream.H.
Referenced by UPstream::baseProcNo(), and collatedFileOperation::processorsDir().
|
inlinestaticnoexcept |
All worlds.
Definition at line 715 of file UPstream.H.
Referenced by mappedPatchBase::calcMapping(), mappedPatchBase::masterWorld(), argList::parse(), Foam::printDOT(), and mappedPatchBase::sameWorld().
|
inlinestaticnoexcept |
The indices into allWorlds for all processes.
Definition at line 723 of file UPstream.H.
|
inlinestatic |
My worldID.
Definition at line 731 of file UPstream.H.
References UPstream::globalComm, and UPstream::myProcNo().
Referenced by mappedPatchBase::calcMapping(), multiWorldConnections::createComms(), and mappedPatchBase::masterWorld().
|
inlinestatic |
My world.
Definition at line 739 of file UPstream.H.
References UPstream::globalComm, and UPstream::myProcNo().
Referenced by multiWorldConnections::addConnectionById(), multiWorldConnections::addConnectionByName(), mappedPatchBase::calcMapping(), argList::parse(), mappedPatchBase::sameWorld(), and mappedPatchBase::sampleMesh().
Range of process indices for all processes.
Definition at line 748 of file UPstream.H.
References UPstream::nProcs().
Referenced by refinementHistory::distribute(), zoneDistribute::getDatafromOtherProc(), viewFactor::initialise(), mapDistributeBase::receive(), mapDistributeBase::send(), zoneDistribute::setUpCommforZone(), ParSortableList< Type >::sort(), energySpectrum::write(), and externalCoupled::writeGeometry().
Range of process indices for sub-processes.
Definition at line 757 of file UPstream.H.
References UPstream::nProcs().
Referenced by LUscalarMatrix::LUscalarMatrix(), masterUncollatedFileOperation::NewIFstream(), argList::parse(), mapDistributeBase::schedule(), globalMeshData::sharedPoints(), syncTools::syncEdgeMap(), syncTools::syncPointMap(), patchMeshWriter::writeNeighIDs(), patchMeshWriter::writePatchIDs(), and patchMeshWriter::writePoints().
|
inlinestatic |
Communication schedule for linear all-to-master (proc 0)
Definition at line 767 of file UPstream.H.
|
inlinestatic |
Communication schedule for tree all-to-master (proc 0)
Definition at line 778 of file UPstream.H.
|
inlinestatic |
Communication schedule for linear/tree all-to-master (proc 0). Chooses based on the value of UPstream::nProcsSimpleSum.
Definition at line 790 of file UPstream.H.
References UPstream::nProcs(), and UPstream::nProcsSimpleSum.
Referenced by Foam::reduce(), and Pstream::scatter().
|
inlinestaticnoexcept |
Message tag of standard messages.
Definition at line 806 of file UPstream.H.
Referenced by solidAbsorption::a(), mappedPatchBase::calcMapping(), masterUncollatedFileOperation::chMod(), mappedPatchBase::collectSamples(), extendedCentredCellToFaceStencil::compact(), extendedCentredFaceToCellStencil::compact(), extendedCentredCellToCellStencil::compact(), masterUncollatedFileOperation::cp(), masterUncollatedFileOperation::dirPath(), mappedPatchBase::distribute(), solidAbsorption::e(), masterUncollatedFileOperation::exists(), masterUncollatedFileOperation::filePath(), masterUncollatedFileOperation::fileSize(), distributedTriSurfaceMesh::findNearest(), mappedPatchBase::findSamples(), lduPrimitiveMesh::gather(), Foam::gAverage(), distributedTriSurfaceMesh::getVolumeType(), Foam::gSumCmptProd(), Foam::gSumProd(), masterUncollatedFileOperation::highResLastModified(), viewFactor::initialise(), regionModel::interRegionAMI(), masterUncollatedFileOperation::isDir(), masterUncollatedFileOperation::isFile(), masterUncollatedFileOperation::lastModified(), lduPrimitiveMesh::lduPrimitiveMesh(), masterUncollatedFileOperation::ln(), LUscalarMatrix::LUscalarMatrix(), surfaceWriter::mergeFieldTemplate(), masterUncollatedFileOperation::mkDir(), masterUncollatedFileOperation::mode(), masterUncollatedFileOperation::mv(), masterUncollatedFileOperation::mvBak(), masterUncollatedFileOperation::NewIFstream(), masterUncollatedFileOperation::readDir(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readStream(), surfaceNoise::readSurfaceData(), fvMatrix< Type >::relax(), faMeshBoundaryHalo::reset(), mappedPatchBase::reverseDistribute(), masterUncollatedFileOperation::rm(), masterUncollatedFileOperation::rmDir(), mapDistributeBase::schedule(), surfaceNoise::surfaceAverage(), syncObjects::sync(), processorFvPatch::tag(), processorFaPatch::tag(), processorCyclicPolyPatch::tag(), processorPolyPatch::tag(), masterUncollatedFileOperation::type(), oversetFvMeshBase::updateAddressing(), wideBandDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs(), mappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), mappedFlowRateFvPatchVectorField::updateCoeffs(), MarshakRadiationFvPatchScalarField::updateCoeffs(), filmPyrolysisTemperatureCoupledFvPatchScalarField::updateCoeffs(), filmPyrolysisVelocityCoupledFvPatchVectorField::updateCoeffs(), MarshakRadiationFixedTemperatureFvPatchScalarField::updateCoeffs(), greyDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs(), alphatFilmWallFunctionFvPatchScalarField::updateCoeffs(), thermalBaffle1DFvPatchScalarField< solidType >::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), globalMeshData::updateMesh(), OFstreamCollator::write(), and surfaceNoise::writeSurfaceData().
|
inlinenoexcept |
Get the communications type of the stream.
Definition at line 814 of file UPstream.H.
Referenced by UIPstream::UIPstream().
|
inlinenoexcept |
Set the communications type of the stream.
Definition at line 824 of file UPstream.H.
|
static |
Shutdown (finalize) MPI as required.
Uses MPI_Abort instead of MPI_Finalize if errNo is non-zero
Definition at line 51 of file UPstream.C.
Referenced by ParRunControl::~ParRunControl().
|
static |
Call MPI_Abort with no other checks or cleanup.
Definition at line 62 of file UPstream.C.
References Foam::abort().
Referenced by error::simpleExit().
|
static |
Shutdown (finalize) MPI as required and exit program with errNo.
Definition at line 55 of file UPstream.C.
References Foam::exit().
Referenced by argList::argList(), Foam::exitNow(), argList::parse(), ParRunControl::runPar(), and error::simpleExit().
|
static |
Exchange integer data with all processors (in the communicator).
sendData
[proci] is the value to send to proci. After return recvData contains the data from the other processors.
Definition at line 41 of file UPstreamAllToAll.C.
Referenced by fvMeshDistribute::distribute(), and Pstream::exchangeSizes().
|
static |
Exchange integer data with all processors (in the communicator).
sendData
[proci] is the value to send to proci. After return recvData contains the data from the other processors.
Definition at line 42 of file UPstreamAllToAll.C.
|
static |
Receive identically-sized char
data from all ranks.
Definition at line 55 of file UPstreamGatherScatter.C.
|
static |
Send identically-sized char
data to all ranks.
Definition at line 55 of file UPstreamGatherScatter.C.
|
static |
Receive variable length char
data from all ranks.
sendCount | Ignored on master if recvCount[0] == 0 |
recvData | Ignored on non-root rank |
recvCounts | Ignored on non-root rank |
recvOffsets | Ignored on non-root rank |
Definition at line 95 of file UPstreamGatherScatter.C.
|
static |
Send variable length char
data to all ranks.
sendData | Ignored on non-root rank |
sendCounts | Ignored on non-root rank |
sendOffsets | Ignored on non-root rank |
Definition at line 95 of file UPstreamGatherScatter.C.
|
static |
Receive variable length int32_t
data from all ranks.
sendCount | Ignored on master if recvCount[0] == 0 |
recvData | Ignored on non-root rank |
recvCounts | Ignored on non-root rank |
recvOffsets | Ignored on non-root rank |
Definition at line 96 of file UPstreamGatherScatter.C.
|
static |
Send variable length int32_t
data to all ranks.
sendData | Ignored on non-root rank |
sendCounts | Ignored on non-root rank |
sendOffsets | Ignored on non-root rank |
Definition at line 96 of file UPstreamGatherScatter.C.
|
static |
Receive variable length int64_t
data from all ranks.
sendCount | Ignored on master if recvCount[0] == 0 |
recvData | Ignored on non-root rank |
recvCounts | Ignored on non-root rank |
recvOffsets | Ignored on non-root rank |
Definition at line 97 of file UPstreamGatherScatter.C.
|
static |
Send variable length int64_t
data to all ranks.
sendData | Ignored on non-root rank |
sendCounts | Ignored on non-root rank |
sendOffsets | Ignored on non-root rank |
Definition at line 97 of file UPstreamGatherScatter.C.
|
static |
Receive variable length uint32_t
data from all ranks.
sendCount | Ignored on master if recvCount[0] == 0 |
recvData | Ignored on non-root rank |
recvCounts | Ignored on non-root rank |
recvOffsets | Ignored on non-root rank |
Definition at line 98 of file UPstreamGatherScatter.C.
|
static |
Send variable length uint32_t
data to all ranks.
sendData | Ignored on non-root rank |
sendCounts | Ignored on non-root rank |
sendOffsets | Ignored on non-root rank |
Definition at line 98 of file UPstreamGatherScatter.C.
|
static |
Receive variable length uint64_t
data from all ranks.
sendCount | Ignored on master if recvCount[0] == 0 |
recvData | Ignored on non-root rank |
recvCounts | Ignored on non-root rank |
recvOffsets | Ignored on non-root rank |
Definition at line 99 of file UPstreamGatherScatter.C.
|
static |
Send variable length uint64_t
data to all ranks.
sendData | Ignored on non-root rank |
sendCounts | Ignored on non-root rank |
sendOffsets | Ignored on non-root rank |
Definition at line 99 of file UPstreamGatherScatter.C.
|
static |
Receive variable length float
data from all ranks.
sendCount | Ignored on master if recvCount[0] == 0 |
recvData | Ignored on non-root rank |
recvCounts | Ignored on non-root rank |
recvOffsets | Ignored on non-root rank |
Definition at line 100 of file UPstreamGatherScatter.C.
|
static |
Send variable length float
data to all ranks.
sendData | Ignored on non-root rank |
sendCounts | Ignored on non-root rank |
sendOffsets | Ignored on non-root rank |
Definition at line 100 of file UPstreamGatherScatter.C.
|
static |
Receive variable length double
data from all ranks.
sendCount | Ignored on master if recvCount[0] == 0 |
recvData | Ignored on non-root rank |
recvCounts | Ignored on non-root rank |
recvOffsets | Ignored on non-root rank |
Definition at line 101 of file UPstreamGatherScatter.C.
|
static |
Send variable length double
data to all ranks.
sendData | Ignored on non-root rank |
sendCounts | Ignored on non-root rank |
sendOffsets | Ignored on non-root rank |
Definition at line 101 of file UPstreamGatherScatter.C.
|
static |
Gather individual values into list locations.
On master list length == nProcs, otherwise zero length. If called in non-parallel mode, the returned list length is 1 with localValue.
Referenced by globalIndex::reset().
Scatter individual values from list locations.
On master input list length == nProcs, ignored on other procs. If called in non-parallel mode, returns the first list element (or zero).
Definition at line 71 of file UPstreamTemplates.C.
References Foam::abort(), UList< T >::cdata_bytes(), UList< T >::empty(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, UList< T >::size(), T, and Foam::Zero.
|
static |
Broadcast buffer contents to all processes in communicator. The sizes must match on all processes.
Definition at line 26 of file UPstreamBroadcast.C.
Referenced by Pstream::broadcast().
|
static |
Logical (and) reduction (cf. MPI AllReduce)
Definition at line 28 of file UPstreamReduce.C.
Referenced by faMeshReconstructor::faMeshReconstructor(), and Foam::returnReduceAnd().
|
static |
Logical (or) reduction (cf. MPI AllReduce)
Definition at line 31 of file UPstreamReduce.C.
Referenced by polyBoundaryMesh::checkDefinition(), snappyLayerDriver::doLayers(), PstreamBuffers::finishedSends(), masterUncollatedFileOperation::readStream(), and Foam::returnReduceOr().
|
inlinestaticnoexcept |
Process index of first sub-process.
Definition at line 1016 of file UPstream.H.
|
inlinestatic |
Process index of last sub-process.
Definition at line 1026 of file UPstream.H.
References UPstream::nProcs().
Foam::List<T> listGatherValues | ( | const T & | localValue, |
const label | comm | ||
) |
Definition at line 25 of file UPstreamTemplates.C.
References Foam::abort(), UList< T >::data_bytes(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, List< T >::resize(), and T.
|
static |
Enumerated names for the communication types.
Definition at line 76 of file UPstream.H.
Referenced by debugWriter::debugWriter(), PstreamBuffers::finishedGathers(), PstreamBuffers::finishedScatters(), PstreamBuffers::finishedSends(), argList::parse(), surfaceNoise::read(), addcommsTypeToOpt::readData(), surfaceWriter::surfaceWriter(), and addcommsTypeToOpt::writeData().
|
static |
Should compact transfer be used in which floats replace doubles reducing the bandwidth requirement at the expense of some loss in accuracy.
Definition at line 327 of file UPstream.H.
Referenced by argList::parse().
|
static |
Number of processors to change from linear to tree communication.
Definition at line 332 of file UPstream.H.
Referenced by UList< Foam::vector >::operator[](), argList::parse(), and UPstream::whichCommunication().
|
static |
Default commsType.
Definition at line 337 of file UPstream.H.
Referenced by faBoundaryMesh::calcGeometry(), oversetFvMeshBase::correctCoupledBoundaryConditions(), distributedTriSurfaceMesh::distribute(), mappedPatchBase::distribute(), mapDistributeBase::distribute(), Foam::evaluateConstraintTypes(), pointBoundaryMesh::movePoints(), faBoundaryMesh::movePoints(), polyBoundaryMesh::movePoints(), argList::parse(), addcommsTypeToOpt::readData(), mappedPatchBase::reverseDistribute(), mapDistributeBase::reverseDistribute(), syncTools::syncBoundaryFaceList(), pointBoundaryMesh::updateMesh(), faBoundaryMesh::updateMesh(), polyBoundaryMesh::updateMesh(), and addcommsTypeToOpt::writeData().
|
static |
Number of polling cycles in processor updates.
Definition at line 342 of file UPstream.H.
Referenced by argList::parse().
|
static |
Optional maximum message size (bytes)
Definition at line 347 of file UPstream.H.
Referenced by Pstream::exchange().
|
static |
MPI buffer-size (bytes)
Definition at line 352 of file UPstream.H.
Referenced by attachOurBuffers().
|
static |
Default world communicator (all processors). May differ from globalComm if local worlds are in use.
Definition at line 361 of file UPstream.H.
Referenced by mappedPatchBase::calcAMI(), decompositionMethod::calcCellCells(), surfaceNoise::calculate(), processorFaPatchField< Type >::comm(), multiWorldConnections::comms(), multiWorldConnections::createComms(), masterUncollatedFileOperation::dirPath(), mappedPatchBase::distribute(), ensightSurfaceReader::ensightSurfaceReader(), masterUncollatedFileOperation::filePath(), masterUncollatedFileOperation::findInstance(), ensightSurfaceReader::geometry(), multiWorldConnections::getCommById(), multiWorldConnections::getCommByName(), mappedPatchBase::getWorldCommunicator(), surfaceNoise::initialise(), viewFactor::initialise(), UPstream::isUserComm(), fvMeshTools::loadOrCreateMesh(), messageStream::masterStream(), surfaceWriter::mergeFieldTemplate(), masterUncollatedFileOperation::NewIFstream(), faMeshTools::newMesh(), fvMeshTools::newMesh(), uncollatedFileOperation::read(), masterUncollatedFileOperation::read(), lumpedPointState::readData(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readObjects(), masterUncollatedFileOperation::readStream(), surfaceNoise::readSurfaceData(), mappedPatchBase::reverseDistribute(), surfaceNoise::surfaceAverage(), globalMeshData::updateMesh(), and surfaceNoise::writeSurfaceData().
|
static |
Debugging: warn for use of any communicator differing from warnComm.
Definition at line 366 of file UPstream.H.
Referenced by mappedPatchBase::calcAMI(), mappedPatchBase::collectSamples(), multiWorldConnections::createComms(), mappedPatchBase::distribute(), mappedPatchBase::findSamples(), messageStream::masterStream(), Foam::reduce(), mappedPatchBase::reverseDistribute(), syncObjects::sync(), and globalMeshData::updateMesh().
|
static |
Communicator for all processors, irrespective of any local worlds.
Definition at line 371 of file UPstream.H.
Referenced by multiWorldConnections::createComms(), UPstream::myWorld(), and UPstream::myWorldID().
|
static |
A communicator within the current rank only.
Definition at line 376 of file UPstream.H.
Referenced by UPstream::isUserComm().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.