Inter-processor communications stream. More...
Classes | |
class | commsStruct |
Structure for communicating between processors. More... | |
class | communicator |
Helper class for allocating/freeing communicators. More... | |
class | listEq |
combineReduce operator for lists. Used for counting. More... | |
Public Types | |
enum | commsTypes { blocking, scheduled, nonBlocking } |
Types of communications. More... | |
Public Member Functions | |
ClassName ("UPstream") | |
UPstream (const commsTypes commsType) | |
Construct given optional buffer size. More... | |
commsTypes | commsType () const |
Get the communications type of the stream. More... | |
commsTypes | commsType (const commsTypes ct) |
Set the communications type of the stream. More... | |
Static Public Member Functions | |
static label | allocateCommunicator (const label parent, const labelList &subRanks, const bool doPstream=true) |
Allocate a new 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 (const label myComm, const int procID) |
Return physical processor number (i.e. processor number in. More... | |
static label | procNo (const label comm, const int baseProcID) |
Return processor number in communicator (given physical processor. More... | |
static label | procNo (const label myComm, const label currentComm, const int currentProcID) |
Return processor number in communicator (given processor number. More... | |
static void | addValidParOptions (HashTable< string > &validParOptions) |
Add the valid option this type of communications library. More... | |
static bool | init (int &argc, char **&argv, const bool needsThread) |
Initialisation function called from main. More... | |
static label | nRequests () |
Get number of outstanding requests. More... | |
static void | resetRequests (const label sz) |
Truncate number of outstanding requests. 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 *) |
static int | allocateTag (const word &) |
static void | freeTag (const char *, const int tag) |
static void | freeTag (const word &, const int tag) |
static bool & | parRun () |
Is this a parallel run? More... | |
static bool | haveThreads () |
Have support for threads. More... | |
static label | nProcs (const label communicator=0) |
Number of processes in parallel run. More... | |
static int | masterNo () |
Process index of the master. More... | |
static bool | master (const label communicator=0) |
Am I the master process. More... | |
static int | myProcNo (const label communicator=0) |
Number of this process (starting from masterNo() = 0) More... | |
static label | parent (const label communicator) |
static List< int > & | procID (label communicator) |
Process ID of given process index. More... | |
static int | firstSlave () |
Process index of first slave. More... | |
static int | lastSlave (const label communicator=0) |
Process index of last slave. More... | |
static const List< commsStruct > & | linearCommunication (const label communicator=0) |
Communication schedule for linear all-to-master (proc 0) More... | |
static const List< commsStruct > & | treeCommunication (const label communicator=0) |
Communication schedule for tree all-to-master (proc 0) More... | |
static int & | msgType () |
Message tag of standard messages. More... | |
static void | exit (int errnum=1) |
Exit program. More... | |
static void | abort () |
Abort program. More... | |
static void | allToAll (const labelUList &sendData, labelUList &recvData, const label communicator=0) |
Exchange label with all processors (in the communicator). More... | |
static void | allToAll (const char *sendData, const UList< int > &sendSizes, const UList< int > &sendOffsets, char *recvData, const UList< int > &recvSizes, const UList< int > &recvOffsets, const label communicator=0) |
Exchange data with all processors (in the communicator) More... | |
static void | gather (const char *sendData, int sendSize, char *recvData, const UList< int > &recvSizes, const UList< int > &recvOffsets, const label communicator=0) |
Receive data from all processors on the master. More... | |
static void | scatter (const char *sendData, const UList< int > &sendSizes, const UList< int > &sendOffsets, char *recvData, int recvSize, const label communicator=0) |
Send data to all processors from the root of the communicator. More... | |
Static Public Attributes | |
static const NamedEnum< commsTypes, 3 > | commsTypeNames |
static bool | floatTransfer |
Should compact transfer be used in which floats replace doubles. More... | |
static int | nProcsSimpleSum |
Number of processors at which the sum algorithm changes from linear. More... | |
static commsTypes | defaultCommsType |
Default commsType. More... | |
static int | nPollProcInterfaces |
Number of polling cycles in processor updates. More... | |
static label | worldComm |
Default communicator (all processors) More... | |
static label | warnComm |
Debugging: warn for use of any communicator differing from warnComm. More... | |
Protected Attributes | |
commsTypes | commsType_ |
Communications type of this stream. More... | |
|
strong |
Types of communications.
Enumerator | |
---|---|
blocking | |
scheduled | |
nonBlocking |
Definition at line 64 of file UPstream.H.
|
inline |
Construct given optional buffer size.
Definition at line 287 of file UPstream.H.
References UPstream::allocateCommunicator(), UPstream::freeCommunicator(), UPstream::freeCommunicators(), and UPstream::parent().
ClassName | ( | "UPstream" | ) |
|
static |
Allocate a new communicator.
Definition at line 248 of file UPstream.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, UPstream::freeCommunicator(), Foam::Pout, and List< T >::size().
Referenced by masterCoarsestGAMGProcAgglomeration::agglomerate(), eagerGAMGProcAgglomeration::agglomerate(), manualGAMGProcAgglomeration::agglomerate(), procFacesGAMGProcAgglomeration::agglomerate(), NamedEnum< compressibleField, 8 >::names(), globalMeshData::topoChange(), and UPstream::UPstream().
Free a previously allocated communicator.
Definition at line 314 of file UPstream.C.
References Foam::endl(), and Foam::Pout.
Referenced by UPstream::allocateCommunicator(), globalMeshData::topoChange(), UPstream::UPstream(), collatedFileOperation::~collatedFileOperation(), UPstream::communicator::~communicator(), eagerGAMGProcAgglomeration::~eagerGAMGProcAgglomeration(), hostCollatedFileOperation::~hostCollatedFileOperation(), manualGAMGProcAgglomeration::~manualGAMGProcAgglomeration(), masterCoarsestGAMGProcAgglomeration::~masterCoarsestGAMGProcAgglomeration(), masterUncollatedFileOperation::~masterUncollatedFileOperation(), OFstreamCollator::~OFstreamCollator(), and procFacesGAMGProcAgglomeration::~procFacesGAMGProcAgglomeration().
|
static |
Free all communicators.
Definition at line 341 of file UPstream.C.
References forAll.
Referenced by UPstream::UPstream().
|
static |
Return physical processor number (i.e. processor number in.
worldComm) given communicator and processor
Definition at line 353 of file UPstream.C.
References UPstream::parent(), and UPstream::procID().
Referenced by UPstream::communicator::operator label(), and UPstream::procNo().
|
static |
Return processor number in communicator (given physical processor.
number) (= reverse of baseProcNo)
Definition at line 369 of file UPstream.C.
References Foam::findIndex().
Referenced by UPstream::communicator::operator label().
|
static |
Return processor number in communicator (given processor number.
and communicator)
Definition at line 387 of file UPstream.C.
References UPstream::baseProcNo(), UPstream::defaultCommsType, UPstream::floatTransfer, Foam::debug::namedEnumOptimisationSwitch(), UPstream::nPollProcInterfaces, UPstream::nProcsSimpleSum, Foam::debug::optimisationSwitch(), serialComm, UPstream::warnComm, and UPstream::worldComm.
Add the valid option this type of communications library.
adds/requires on the command line
Definition at line 31 of file UPstream.C.
Referenced by argList::initValidTables::initValidTables(), and UPstream::communicator::operator label().
Initialisation function called from main.
Spawns slave processes and initialises inter-communication
Definition at line 35 of file UPstream.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.
Referenced by UPstream::communicator::operator label(), and ParRunControl::runPar().
|
static |
Get number of outstanding requests.
Definition at line 137 of file UPstream.C.
Referenced by UPstream::allToAll(), distributionMapBase::compact(), Foam::evaluateConstraintTypes(), processorFvPatchField< Type >::initInterfaceMatrixUpdate(), processorGAMGInterfaceField::initInterfaceMatrixUpdate(), UPstream::communicator::operator label(), fvMeshDistribute::printFieldInfo(), fvMesh::unconform(), processorFvPatchField< Type >::updateInterfaceMatrix(), processorGAMGInterfaceField::updateInterfaceMatrix(), and OFstreamCollator::write().
|
static |
Truncate number of outstanding requests.
Definition at line 143 of file UPstream.C.
Referenced by UPstream::allToAll(), and UPstream::communicator::operator label().
|
static |
Wait until all requests (from start onwards) have finished.
Definition at line 147 of file UPstream.C.
Referenced by UPstream::allToAll(), distributionMapBase::compact(), Foam::evaluateConstraintTypes(), GAMGProcAgglomeration::globalCellCells(), UPstream::communicator::operator label(), fvMeshDistribute::printFieldInfo(), fvMesh::unconform(), and OFstreamCollator::write().
|
static |
Wait until request i has finished.
Definition at line 151 of file UPstream.C.
Referenced by UPstream::allToAll(), UPstream::communicator::operator label(), processorFvPatchField< Type >::updateInterfaceMatrix(), and processorGAMGInterfaceField::updateInterfaceMatrix().
Non-blocking comms: has request i finished?
Definition at line 155 of file UPstream.C.
References NotImplemented.
Referenced by UPstream::allToAll(), and UPstream::communicator::operator label().
|
static |
Definition at line 822 of file UPstream.C.
References Foam::endl(), Foam::PstreamGlobals::freedTags_, Foam::PstreamGlobals::nTags_, Foam::Pout, and DynamicList< T, SizeInc, SizeMult, SizeDiv >::remove().
Referenced by UPstream::communicator::operator label().
|
static |
Definition at line 851 of file UPstream.C.
References Foam::endl(), Foam::PstreamGlobals::freedTags_, Foam::PstreamGlobals::nTags_, Foam::Pout, and DynamicList< T, SizeInc, SizeMult, SizeDiv >::remove().
|
static |
Definition at line 880 of file UPstream.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::endl(), Foam::PstreamGlobals::freedTags_, and Foam::Pout.
Referenced by UPstream::communicator::operator label().
|
static |
Definition at line 896 of file UPstream.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::endl(), Foam::PstreamGlobals::freedTags_, and Foam::Pout.
|
inlinestatic |
Is this a parallel run?
Definition at line 399 of file UPstream.H.
Referenced by error::abort(), IOerror::abort(), snappyLayerDriver::addLayers(), regIOobject::addWatch(), UPstream::allToAll(), LduMatrix< Type, DType, LUType >::asymmetric(), lduMatrix::asymmetric(), meshRefinement::balance(), boundBox::boundBox(), cyclicAMIPolyPatch::calcGeometry(), processorPolyPatch::calcGeometry(), polyBoundaryMesh::checkParallelSync(), distributionMapBase::compact(), fvMeshStitcher::connect(), cyclicAMIPointPatch::coupled(), processorFvPatch::coupled(), nonConformalProcessorCyclicFvPatch::coupled(), processorCyclicPointPatchField< Type >::coupled(), processorCyclicFvsPatchField< Type >::coupled(), processorPointPatchField< Type >::coupled(), processorFvsPatchField< Type >::coupled(), cyclicAMIFvPatch::coupled(), processorFvPatchField< Type >::coupled(), processorPolyPatch::coupled(), simpleGeomDecomp::decompose(), decompositionMethod::decompose(), conformalVoronoiMesh::decomposition(), nonConformalProcessorCyclicFvPatch::delta(), processorFvPatch::delta(), LduMatrix< Type, DType, LUType >::diagonal(), lduMatrix::diagonal(), fvMeshStitcher::disconnect(), refinementHistory::distribute(), fvMeshDistribute::distribute(), distributedTriSurfaceMesh::distributedTriSurfaceMesh(), snappyLayerDriver::doLayers(), snappyRefineDriver::doRefine(), PointEdgeWave< Type, TrackingData >::edgeToPoint(), Foam::evaluateConstraintTypes(), error::exit(), IOerror::exit(), sampledSurfaces::expire(), polyMesh::findCell(), distributedTriSurfaceMesh::findNearest(), masterUncollatedFileOperation::findTimes(), Foam::functionObjects::fieldValues::volFieldValue::writeFileHeaderLocation< Foam::scalar >(), Pstream::gather(), Pstream::gatherList(), distributedTriSurfaceMesh::getField(), distributedTriSurfaceMesh::getNormal(), distributedTriSurfaceMesh::getRegion(), GAMGProcAgglomeration::globalCellCells(), InflationInjection< CloudType >::InflationInjection(), processorPolyPatch::initCalcGeometry(), processorPolyPatch::initOrder(), processorPolyPatch::initTopoChange(), collatedFileOperation::isMasterRank(), PointEdgeWave< Type, TrackingData >::iterate(), fileOperation::lookupProcessorsPath(), LUscalarMatrix::LUscalarMatrix(), processorFvPatch::makeWeights(), nonConformalProcessorCyclicFvPatch::makeWeights(), NamedEnum< compressibleField, 8 >::names(), polyBoundaryMesh::nbrEdges(), masterUncollatedFileOperation::NewIFstream(), messageStream::operator()(), processorPolyPatch::order(), InflationInjection< CloudType >::parcelsToInject(), patchMeanVelocityForce::patchMeanVelocityForce(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), fvMeshDistribute::printFieldInfo(), collatedFileOperation::processorsDir(), processorTopology::processorTopology(), uncollatedFileOperation::read(), sampledSurfaces::read(), masterUncollatedFileOperation::read(), Time::readModifiedObjects(), masterUncollatedFileOperation::readObjects(), masterUncollatedFileOperation::readStream(), masterUncollatedFileOperation::relativeObjectPath(), Pstream::scatter(), Pstream::scatterList(), Time::setControls(), fvMeshSubset::setLargeCellSubset(), intersection::srcBoxStatic(), LduMatrix< Type, DType, LUType >::symmetric(), lduMatrix::symmetric(), syncTools::syncEdgeMap(), syncTools::syncEdgePositions(), syncTools::syncPointMap(), processorPolyPatch::topoChange(), externalCoupledTemperatureMixedFvPatchScalarField::transferData(), fvMesh::unconform(), sampledSurfaces::update(), fileOperation::updateStates(), sampledSets::write(), sampledSurfaces::write(), streamlines::write(), meshToMeshMethod::writeConnectivity(), volFieldValue::writeFileHeaderLocation(), collatedFileOperation::writeObject(), and masterOFstream::~masterOFstream().
|
inlinestatic |
Have support for threads.
Definition at line 405 of file UPstream.H.
Referenced by UPstream::listEq::operator()(), and OFstreamCollator::write().
Number of processes in parallel run.
Definition at line 411 of file UPstream.H.
References List< T >::size().
Referenced by surfaceZonesInfo::addCellZonesToMesh(), surfaceZonesInfo::addFaceZonesToMesh(), masterCoarsestGAMGProcAgglomeration::agglomerate(), eagerGAMGProcAgglomeration::agglomerate(), manualGAMGProcAgglomeration::agglomerate(), procFacesGAMGProcAgglomeration::agglomerate(), UPstream::allToAll(), meshRefinement::balanceAndRefine(), distributionMapBase::calcCompactAddressing(), decomposedBlockData::calcNumProcs(), lineFace::calcSamples(), meshRefinement::checkCoupledFaceZones(), polyBoundaryMesh::checkParallelSync(), collatedFileOperation::collatedFileOperation(), mappedPatchBase::collectSamples(), fieldValue::combineFields(), Foam::combineReduce(), distributionMapBase::compact(), GAMGAgglomeration::continueAgglomerating(), fvMeshDistribute::countCells(), simpleGeomDecomp::decompose(), refinementHistory::distribute(), fvMeshDistribute::distribute(), distributedTriSurfaceMesh::distribute(), distributedTriSurfaceMesh::distributedTriSurfaceMesh(), patchToPatch::distributePatch(), distributionMapBase::distributionMapBase(), distributionMapBase::exchangeAddressing(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), distributedTriSurfaceMesh::findNearest(), Pstream::gather(), decomposedBlockData::gather(), coordSet::gather(), Foam::gatherAndFlatten(), Pstream::gatherList(), decomposedBlockData::gatherSlaveData(), globalIndex::globalIndex(), hostCollatedFileOperation::hostCollatedFileOperation(), UPstream::lastSlave(), LUscalarMatrix::LUscalarMatrix(), Foam::meshEdge(), NamedEnum< compressibleField, 8 >::names(), masterUncollatedFileOperation::NewIFstream(), lessProcPatches::operator()(), UPstream::listEq::operator()(), InflationInjection< CloudType >::parcelsToInject(), argList::parse(), patchToPatch::patchDistributionMap(), AMIInterpolation::patchMagSf(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), fvMeshDistribute::printCoupleInfo(), distributionMapBase::printLayout(), collatedFileOperation::processorsDir(), processorTopology::processorTopology(), uncollatedFileOperation::read(), masterUncollatedFileOperation::read(), decomposedBlockData::readBlocks(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readStream(), distributionMapBase::receive(), Foam::reduce(), meshRefinement::refineAndBalance(), meshRefinement::refineCandidates(), Foam::returnReduce(), Pstream::scatter(), Pstream::scatterList(), distributionMapBase::schedule(), Time::setControls(), fvMeshSubset::setLargeCellSubset(), ParSortableList< Type >::sort(), patchToPatch::srcPatchSendFaces(), globalMeshData::topoChange(), externalCoupledTemperatureMixedFvPatchScalarField::transferData(), loadBalancer::update(), distributor::update(), decomposedBlockData::writeBlocks(), and masterOFstream::~masterOFstream().
|
inlinestatic |
Process index of the master.
Definition at line 417 of file UPstream.H.
Referenced by simpleGeomDecomp::decompose(), LUscalarMatrix::LUscalarMatrix(), UPstream::master(), masterUncollatedFileOperation::NewIFstream(), argList::parse(), masterUncollatedFileOperation::read(), decomposedBlockData::readBlocks(), distributionMapBase::schedule(), globalMeshData::sharedPoints(), syncTools::syncEdgeMap(), syncTools::syncPointMap(), decomposedBlockData::writeBlocks(), and masterOFstream::~masterOFstream().
Am I the master process.
Definition at line 423 of file UPstream.H.
References UPstream::masterNo().
Referenced by effectivenessHeatExchangerSource::addSup(), regIOobject::addWatch(), masterUncollatedFileOperation::addWatch(), UPstream::allToAll(), mappedPatchBase::calcMapping(), decomposedBlockData::calcNumProcs(), viewFactor::calculate(), argList::check(), polyBoundaryMesh::checkParallelSync(), argList::checkRootCase(), Foam::chMod(), collatedFileOperation::collatedFileOperation(), fieldValue::combineFields(), commSchedule::commSchedule(), Foam::cp(), logFiles::createFiles(), simpleGeomDecomp::decompose(), codedBase::description(), masterUncollatedFileOperation::dirPath(), regionSizeDistribution::divide(), Foam::exists(), logFiles::file(), masterUncollatedFileOperation::filePath(), logFiles::files(), Foam::fileSize(), probes::findElements(), masterUncollatedFileOperation::findInstance(), masterUncollatedFileOperation::findTimes(), masterUncollatedFileOperation::findWatch(), decomposedBlockData::gather(), decomposedBlockData::gatherSlaveData(), masterUncollatedFileOperation::getFile(), masterUncollatedFileOperation::getState(), Random::globalScalar01(), Foam::highResLastModified(), hostCollatedFileOperation::hostCollatedFileOperation(), Foam::isDir(), Foam::isFile(), collatedFileOperation::isMasterRank(), jobInfo::jobInfo(), Foam::lastModified(), Foam::ln(), LUscalarMatrix::LUscalarMatrix(), Foam::mkDir(), Foam::mode(), Foam::mv(), Foam::mvBak(), masterUncollatedFileOperation::NewIFstream(), fileOperation::nProcs(), isNotEqOp< T >::operator()(), messageStream::operator()(), InflationInjection< CloudType >::parcelsToInject(), argList::parse(), porosityModel::porosityModel(), probes::prepare(), decomposedBlockData::read(), uncollatedFileOperation::read(), sampledSurfaces::read(), masterUncollatedFileOperation::read(), decomposedBlockData::readBlocks(), IOdictionary::readData(), Foam::readDir(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readObjects(), masterUncollatedFileOperation::readStream(), masterUncollatedFileOperation::removeWatch(), logFiles::resetName(), logFiles::resetNames(), Foam::rm(), Foam::rmDir(), distributionMapBase::schedule(), masterUncollatedFileOperation::setUnmodified(), globalMeshData::sharedPoints(), jobInfo::signalEnd(), rigidBodyMeshMotionSolver::solve(), rigidBodyMotion::solve(), rigidBodyMeshMotion::solve(), ParSortableList< Type >::sort(), syncTools::syncEdgeMap(), syncTools::syncPointMap(), externalCoupledTemperatureMixedFvPatchScalarField::transferData(), IOobject::typeHeaderOk(), sampledSurfaces::update(), sixDoFRigidBodyMotion::update(), fileMonitor::updateStates(), masterUncollatedFileOperation::updateStates(), solution::upgradeSolverDict(), OFstreamCollator::waitAll(), jobInfo::write(), specieReactionRates::write(), timeStep::write(), time::write(), residuals::write(), turbulenceIntensity::write(), rigidBodyState::write(), cloudInfo::write(), sixDoFRigidBodyState::write(), yPlus::write(), wallHeatFlux::write(), sampledSets::write(), histogram::write(), wallShearStress::write(), wallHeatTransferCoeff::write(), OFstreamCollator::write(), fieldValueDelta::write(), layerAverage::write(), forceCoeffs::write(), sampledSurfaces::write(), streamlines::write(), forces::write(), volFieldValue::write(), surfaceFieldValue::write(), decomposedBlockData::writeBlocks(), decomposedBlockData::writeData(), timeStep::writeFileHeader(), time::writeFileHeader(), residuals::writeFileHeader(), decomposedBlockData::writeObject(), collatedFileOperation::writeObject(), jobInfo::~jobInfo(), and masterOFstream::~masterOFstream().
|
inlinestatic |
Number of this process (starting from masterNo() = 0)
Definition at line 429 of file UPstream.H.
Referenced by surfaceZonesInfo::addCellZonesToMesh(), surfaceZonesInfo::addFaceZonesToMesh(), GAMGProcAgglomeration::agglomerate(), masterCoarsestGAMGProcAgglomeration::agglomerate(), eagerGAMGProcAgglomeration::agglomerate(), manualGAMGProcAgglomeration::agglomerate(), distributionMapBase::calcCompactAddressing(), lineFace::calcSamples(), points::calcSamples(), viewFactor::calculate(), GAMGAgglomeration::calculateRegionMaster(), meshRefinement::checkCoupledFaceZones(), polyBoundaryMesh::checkParallelSync(), collatedFileOperation::collatedFileOperation(), mappedPatchBase::collectSamples(), fieldValue::combineFields(), distributionMapBase::compact(), noDecomp::decompose(), codedBase::description(), fvMeshDistribute::distribute(), distributedTriSurfaceMesh::distribute(), distributedTriSurfaceMesh::distributedTriSurfaceMesh(), patchToPatch::distributePatch(), distributionMap::distributionMap(), distributionMapBase::distributionMapBase(), distributionMapBase::exchangeAddressing(), processorField::execute(), InjectionModel< CloudType >::findCellAtPosition(), probes::findElements(), patchProbes::findElements(), distributedTriSurfaceMesh::findNearest(), mappedPatchBase::findSamples(), Pstream::gather(), coordSet::gather(), lduPrimitiveMesh::gather(), Foam::gatherAndFlatten(), Pstream::gatherList(), decomposedBlockData::gatherSlaveData(), get_edge_list(), GAMGProcAgglomeration::globalCellCells(), globalIndex::globalIndex(), particle::hitNonConformalCyclicPatch(), hostCollatedFileOperation::hostCollatedFileOperation(), globalIndex::isLocal(), lduPrimitiveMesh::lduPrimitiveMesh(), patchToPatch::localFacesToProcFaces(), globalIndex::localSize(), meshToMesh::mapAndOpTgtToSrc(), conformalVoronoiMesh::maxSurfaceProtrusion(), meshRefinement::mergeBaffles(), Foam::meshEdge(), Foam::min(), NamedEnum< compressibleField, 8 >::names(), masterUncollatedFileOperation::NewIFstream(), regionSplit::nLocalRegions(), ListPlusEqOp< T, Size >::operator()(), lessProcPatches::operator()(), InflationInjection< CloudType >::parcelsToInject(), argList::parse(), patchToPatch::patchDistributionMap(), AMIInterpolation::patchMagSf(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), UOPstream::print(), fvMeshDistribute::printCoupleInfo(), distributionMapBase::printLayout(), backgroundMeshDecomposition::procBounds(), processorTopology::processorTopology(), uncollatedFileOperation::read(), masterUncollatedFileOperation::read(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readStream(), indexedVertex< Gt, Vb >::referred(), masterUncollatedFileOperation::relativeObjectPath(), Pstream::scatter(), Pstream::scatterList(), distributionMapBase::schedule(), Time::setControls(), fvMeshSubset::setLargeCellSubset(), patchInjectionBase::setPositionAndCell(), ParSortableList< Type >::sort(), ThermoSurfaceFilm< CloudType >::splashInteraction(), intersection::srcBoxStatic(), masterUncollatedFileOperation::subRanks(), refinementHistory::subset(), globalIndex::toGlobal(), globalIndex::toLocal(), patchInjectionBase::topoChange(), externalCoupledTemperatureMixedFvPatchScalarField::transferData(), meshToMeshMethod::writeConnectivity(), AMIInterpolation::writeFaceConnectivity(), extendedCellToFaceStencil::writeStencilStats(), and masterOFstream::~masterOFstream().
Definition at line 434 of file UPstream.H.
Referenced by UPstream::baseProcNo(), and UPstream::UPstream().
Process ID of given process index.
Definition at line 440 of file UPstream.H.
Referenced by UPstream::baseProcNo(), UPstream::listEq::operator()(), and collatedFileOperation::processorsDir().
|
inlinestatic |
Process index of first slave.
Definition at line 446 of file UPstream.H.
Referenced by LUscalarMatrix::LUscalarMatrix(), argList::parse(), distributionMapBase::schedule(), globalMeshData::sharedPoints(), syncTools::syncEdgeMap(), and syncTools::syncPointMap().
|
inlinestatic |
Process index of last slave.
Definition at line 452 of file UPstream.H.
References UPstream::linearCommunication(), and UPstream::nProcs().
Referenced by LUscalarMatrix::LUscalarMatrix(), argList::parse(), distributionMapBase::schedule(), globalMeshData::sharedPoints(), syncTools::syncEdgeMap(), and syncTools::syncPointMap().
|
inlinestatic |
Communication schedule for linear all-to-master (proc 0)
Definition at line 459 of file UPstream.H.
References UPstream::treeCommunication().
Referenced by Foam::combineReduce(), Pstream::gather(), Pstream::gatherList(), UPstream::lastSlave(), uncollatedFileOperation::read(), masterUncollatedFileOperation::read(), Foam::reduce(), Foam::returnReduce(), Pstream::scatter(), and Pstream::scatterList().
|
inlinestatic |
Communication schedule for tree all-to-master (proc 0)
Definition at line 468 of file UPstream.H.
Referenced by Foam::combineReduce(), Pstream::gather(), Pstream::gatherList(), UPstream::linearCommunication(), uncollatedFileOperation::read(), masterUncollatedFileOperation::read(), Foam::reduce(), Foam::returnReduce(), Pstream::scatter(), and Pstream::scatterList().
|
inlinestatic |
Message tag of standard messages.
Definition at line 476 of file UPstream.H.
Referenced by decompositionMethod::calcCellCells(), masterUncollatedFileOperation::chMod(), extendedCentredCellToFaceStencil::compact(), extendedCentredFaceToCellStencil::compact(), extendedCentredCellToCellStencil::compact(), distributionMapBase::constructHasFlip(), masterUncollatedFileOperation::cp(), masterUncollatedFileOperation::dirPath(), masterUncollatedFileOperation::exists(), masterUncollatedFileOperation::filePath(), masterUncollatedFileOperation::fileSize(), masterUncollatedFileOperation::findInstance(), UOPstream::flags(), UIPstream::flags(), globalIndex::gather(), lduPrimitiveMesh::gather(), Foam::gAverage(), GAMGProcAgglomeration::globalCellCells(), globalIndex::globalIndex(), Foam::gSumCmptProd(), Foam::gSumProd(), masterUncollatedFileOperation::highResLastModified(), masterUncollatedFileOperation::isDir(), masterUncollatedFileOperation::isFile(), masterUncollatedFileOperation::lastModified(), lduPrimitiveMesh::lduPrimitiveMesh(), masterUncollatedFileOperation::ln(), LUscalarMatrix::LUscalarMatrix(), mappedPatchFieldBase< Type >::mappedField(), masterUncollatedFileOperation::mkDir(), masterUncollatedFileOperation::mode(), masterUncollatedFileOperation::mv(), masterUncollatedFileOperation::mvBak(), masterUncollatedFileOperation::NewIFstream(), fileOperation::nProcs(), distributionMap::transformPosition::operator()(), processorTopology::processorTopology(), Pstream::Pstream(), uncollatedFileOperation::read(), masterUncollatedFileOperation::read(), decomposedBlockData::readBlocks(), masterUncollatedFileOperation::readDir(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readStream(), Foam::reduce(), fvMatrix< Type >::relax(), masterUncollatedFileOperation::rm(), masterUncollatedFileOperation::rmDir(), distributionMapBase::schedule(), processorFvPatch::tag(), processorCyclicPolyPatch::tag(), processorPolyPatch::tag(), globalMeshData::topoChange(), externalCoupledTemperatureMixedFvPatchScalarField::transferData(), distributionMap::transformStart(), masterUncollatedFileOperation::type(), mappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), mappedFlowRateFvPatchVectorField::updateCoeffs(), wideBandDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs(), MarshakRadiationFvPatchScalarField::updateCoeffs(), MarshakRadiationFixedTemperatureFvPatchScalarField::updateCoeffs(), greyDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs(), alphatFilmWallFunctionFvPatchScalarField::updateCoeffs(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), thermalBaffle1DFvPatchScalarField< solidType >::updateCoeffs(), OFstreamCollator::write(), decomposedBlockData::writeBlocks(), and decomposedBlockData::writeData().
|
inline |
Get the communications type of the stream.
Definition at line 483 of file UPstream.H.
References UPstream::commsType_.
|
inline |
Set the communications type of the stream.
Definition at line 489 of file UPstream.H.
References UPstream::abort(), UPstream::allToAll(), UPstream::commsType_, UPstream::exit(), UPstream::gather(), Foam::operator<<(), and UPstream::scatter().
|
static |
Exit program.
Definition at line 46 of file UPstream.C.
References NotImplemented.
Referenced by UPstream::commsType(), error::exit(), IOerror::exit(), ParRunControl::runPar(), and ParRunControl::~ParRunControl().
|
static |
Abort program.
Definition at line 52 of file UPstream.C.
References NotImplemented.
Referenced by error::abort(), IOerror::abort(), and UPstream::commsType().
|
static |
Exchange label with all processors (in the communicator).
sendData[proci] is the label to send to proci. After return recvData contains the data from the other processors.
Definition at line 85 of file UPstream.C.
References UList< T >::deepCopy(), and UPstream::gather().
Referenced by UPstream::commsType(), and Foam::reduce().
|
static |
Exchange data with all processors (in the communicator)
sendSizes, sendOffsets give (per processor) the slice of sendData to send, similarly recvSizes, recvOffsets give the slice of recvData to receive
Definition at line 376 of file UPstream.C.
References Foam::abort(), UList< T >::begin(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, UPstream::finishedRequest(), forAll, UPstream::gather(), UPstream::master(), Foam::PstreamGlobals::MPI_COMM_FOAM, Foam::PstreamGlobals::MPICommunicators_, Foam::PstreamGlobals::MPIGroups_, Foam::nl, UPstream::nProcs(), UPstream::nRequests(), Foam::PstreamGlobals::outstandingRequests_, UPstream::parRun(), Foam::Pout, UPstream::resetRequests(), UPstream::scatter(), UList< T >::size(), UPstream::waitRequest(), UPstream::waitRequests(), and UPstream::worldComm.
|
static |
Receive data from all processors on the master.
Definition at line 96 of file UPstream.C.
References UPstream::scatter().
Referenced by UPstream::allToAll(), UPstream::commsType(), decomposedBlockData::gather(), and decomposedBlockData::gatherSlaveData().
|
static |
Send data to all processors from the root of the communicator.
Definition at line 111 of file UPstream.C.
Referenced by UPstream::allToAll(), decomposedBlockData::calcNumProcs(), UPstream::commsType(), and UPstream::gather().
|
static |
Definition at line 71 of file UPstream.H.
Referenced by PstreamBuffers::finishedSends(), NamedEnum< compressibleField, 8 >::names(), argList::parse(), decomposedBlockData::readBlocks(), and decomposedBlockData::writeBlocks().
|
protected |
Communications type of this stream.
Definition at line 252 of file UPstream.H.
Referenced by UPstream::commsType(), and UOPstream::~UOPstream().
|
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 265 of file UPstream.H.
Referenced by processorFvPatchField< Type >::initInterfaceMatrixUpdate(), processorGAMGInterfaceField::initInterfaceMatrixUpdate(), argList::parse(), UPstream::procNo(), processorFvPatchField< Type >::updateInterfaceMatrix(), and processorGAMGInterfaceField::updateInterfaceMatrix().
|
static |
Number of processors at which the sum algorithm changes from linear.
to tree
Definition at line 269 of file UPstream.H.
Referenced by Foam::combineReduce(), Pstream::gather(), Pstream::gatherList(), argList::parse(), UPstream::procNo(), uncollatedFileOperation::read(), masterUncollatedFileOperation::read(), Foam::reduce(), Foam::returnReduce(), Pstream::scatter(), and Pstream::scatterList().
|
static |
Default commsType.
Definition at line 272 of file UPstream.H.
Referenced by polyBoundaryMesh::clearAddressing(), distributionMapBase::distribute(), mappedPatchBase::distribute(), Foam::evaluateConstraintTypes(), pointBoundaryMesh::findIndices(), pointBoundaryMesh::movePoints(), polyBoundaryMesh::movePoints(), argList::parse(), fvMeshDistribute::printFieldInfo(), processorTopology::processorTopology(), UPstream::procNo(), distributionMapBase::reverseDistribute(), mappedPatchBase::reverseDistribute(), pointBoundaryMesh::topoChange(), polyBoundaryMesh::topoChange(), and fvMesh::unconform().
|
static |
Number of polling cycles in processor updates.
Definition at line 275 of file UPstream.H.
Referenced by argList::parse(), and UPstream::procNo().
|
static |
Default communicator (all processors)
Definition at line 278 of file UPstream.H.
Referenced by UPstream::allToAll(), decompositionMethod::calcCellCells(), distributionMapBase::exchangeAddressing(), masterUncollatedFileOperation::findInstance(), NamedEnum< compressibleField, 8 >::names(), masterUncollatedFileOperation::NewIFstream(), messageStream::operator()(), UPstream::procNo(), Pstream::Pstream(), uncollatedFileOperation::read(), masterUncollatedFileOperation::read(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readStream(), Foam::reduce(), masterUncollatedFileOperation::relativeObjectPath(), globalMeshData::topoChange(), and collatedFileOperation::~collatedFileOperation().
|
static |
Debugging: warn for use of any communicator differing from warnComm.
Definition at line 281 of file UPstream.H.
Referenced by messageStream::operator()(), UPstream::procNo(), and Foam::reduce().