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 class | 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.
ClassName | ( | "UPstream" | ) |
|
static |
Allocate a new communicator.
Definition at line 247 of file UPstream.C.
References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Pout, and List< T >::size().
Referenced by eagerGAMGProcAgglomeration::agglomerate(), manualGAMGProcAgglomeration::agglomerate(), masterCoarsestGAMGProcAgglomeration::agglomerate(), procFacesGAMGProcAgglomeration::agglomerate(), and globalMeshData::topoChange().
|
static |
Free a previously allocated communicator.
Definition at line 313 of file UPstream.C.
References Foam::endl(), and Foam::Pout.
Referenced by globalMeshData::topoChange(), collatedFileOperation::~collatedFileOperation(), UPstream::communicator::~communicator(), eagerGAMGProcAgglomeration::~eagerGAMGProcAgglomeration(), hostCollatedFileOperation::~hostCollatedFileOperation(), manualGAMGProcAgglomeration::~manualGAMGProcAgglomeration(), masterCoarsestGAMGProcAgglomeration::~masterCoarsestGAMGProcAgglomeration(), masterUncollatedFileOperation::~masterUncollatedFileOperation(), OFstreamCollator::~OFstreamCollator(), and procFacesGAMGProcAgglomeration::~procFacesGAMGProcAgglomeration().
|
static |
|
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::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().
|
static |
Return processor number in communicator (given processor number.
and communicator)
Definition at line 386 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 31 of file UPstream.C.
Referenced by argList::initValidTables::initValidTables().
|
static |
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 ParRunControl::runPar().
|
static |
Get number of outstanding requests.
Definition at line 137 of file UPstream.C.
Referenced by distributionMapBase::compact(), distributionMapBase::distribute(), processorFvPatchField< Type >::evaluate(), Pstream::exchange(), globalIndex::gather(), processorFvPatchField< Type >::initEvaluate(), processorFvPatchField< Type >::initInterfaceMatrixUpdate(), processorGAMGInterfaceField::initInterfaceMatrixUpdate(), processorFvPatchField< Type >::ready(), globalIndex::scatter(), 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 lduMatrix::updateMatrixInterfaces().
|
static |
Wait until all requests (from start onwards) have finished.
Definition at line 147 of file UPstream.C.
Referenced by GAMGAgglomeration::agglomerateLduAddressing(), distributionMapBase::compact(), distributionMapBase::distribute(), Pstream::exchange(), globalIndex::gather(), GAMGProcAgglomeration::globalCellCells(), InteractionLists< ParticleType >::receiveReferredData(), globalIndex::scatter(), fvMesh::unconform(), lduMatrix::updateMatrixInterfaces(), and OFstreamCollator::write().
|
static |
Wait until request i has finished.
Definition at line 151 of file UPstream.C.
Referenced by processorFvPatchField< Type >::evaluate(), processorFvPatchField< Type >::updateInterfaceMatrix(), and processorGAMGInterfaceField::updateInterfaceMatrix().
|
static |
Non-blocking comms: has request i finished?
Definition at line 155 of file UPstream.C.
References NotImplemented.
Referenced by processorFvPatchField< Type >::ready().
|
static |
Definition at line 822 of file UPstream.C.
References Foam::endl(), Foam::PstreamGlobals::freedTags_, Foam::PstreamGlobals::nTags_, Foam::Pout, DynamicList< T, SizeInc, SizeMult, SizeDiv >::remove(), and s().
|
static |
Definition at line 851 of file UPstream.C.
References Foam::endl(), Foam::PstreamGlobals::freedTags_, Foam::PstreamGlobals::nTags_, Foam::Pout, DynamicList< T, SizeInc, SizeMult, SizeDiv >::remove(), and s().
|
static |
Definition at line 880 of file UPstream.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::endl(), Foam::PstreamGlobals::freedTags_, Foam::Pout, and s().
|
static |
Definition at line 896 of file UPstream.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::endl(), Foam::PstreamGlobals::freedTags_, Foam::Pout, and s().
|
inlinestatic |
Is this a parallel run?
Definition at line 399 of file UPstream.H.
Referenced by error::abort(), IOerror::abort(), snappyLayerDriver::addLayers(), regIOobject::addWatch(), GAMGAgglomeration::agglomerateLduAddressing(), UPstream::allToAll(), LduMatrix< Type, DType, LUType >::asymmetric(), lduMatrix::asymmetric(), meshRefinement::balance(), boundBox::boundBox(), processorPolyPatch::calcGeometry(), FvFaceCellWave< Type, TrackingData >::cellToFace(), FaceCellWave< Type, TrackingData >::cellToFace(), OppositeFaceCellWave< Type, TrackingData >::cellToFace(), polyBoundaryMesh::checkParallelSync(), Pstream::combineGather(), Pstream::combineScatter(), distributionMapBase::compact(), volFieldValue::compareScalars(), processorFvPatchField< Type >::coupled(), processorFvsPatchField< Type >::coupled(), processorCyclicFvsPatchField< Type >::coupled(), nonConformalProcessorCyclicFvPatch::coupled(), processorFvPatch::coupled(), processorPointPatchField< Type >::coupled(), processorCyclicPointPatchField< Type >::coupled(), processorPolyPatch::coupled(), simple::decompose(), decompositionMethod::decompose(), nonConformalProcessorCyclicFvPatch::delta(), processorFvPatch::delta(), LduMatrix< Type, DType, LUType >::diagonal(), lduMatrix::diagonal(), fvMeshDistribute::distribute(), refinementHistory::distribute(), distributionMapBase::distribute(), distributedTriSurfaceMesh::distributedTriSurfaceMesh(), snappyLayerDriver::doLayers(), snappyRefineDriver::doRefine(), PointEdgeWave< Type, TrackingData >::edgeToPoint(), processorFvPatchField< Type >::evaluate(), Pstream::exchange(), error::exit(), IOerror::exit(), nearest::finalise(), polyMesh::findCell(), distributedTriSurfaceMesh::findNearest(), masterUncollatedFileOperation::findTimes(), fixedMeanFvPatchField< Type >::fixedMeanFvPatchField(), Foam::functionObjects::fieldValues::volFieldValue::writeFileHeaderLocation< Foam::scalar >(), Pstream::gather(), PatchTools::gatherAndMerge(), Pstream::gatherList(), distributedTriSurfaceMesh::getField(), distributedTriSurfaceMesh::getNormal(), distributedTriSurfaceMesh::getRegion(), GAMGProcAgglomeration::globalCellCells(), processorPolyPatch::initCalcGeometry(), processorFvPatchField< Type >::initEvaluate(), processorPolyPatch::initOrder(), processorFvsPatchField< Type >::initPatchNeighbourField(), processorPolyPatch::initTopoChange(), collatedFileOperation::isMasterRank(), FvFaceCellWave< Type, TrackingData >::iterate(), FaceCellWave< Type, TrackingData >::iterate(), PointEdgeWave< Type, TrackingData >::iterate(), Pstream::listCombineGather(), Pstream::listCombineScatter(), fileOperation::lookupProcessorsPath(), LUscalarMatrix::LUscalarMatrix(), nonConformalProcessorCyclicFvPatch::makeWeights(), processorFvPatch::makeWeights(), nonConformalMappedFvPatchBase::map(), Pstream::mapCombineGather(), Pstream::mapCombineScatter(), Cloud< ParticleType >::mapMesh(), masterUncollatedFileOperation::masterOp(), MPPICCloud< CloudType >::motion(), polyBoundaryMesh::nbrEdges(), fvMeshDistributor::New(), masterUncollatedFileOperation::NewIFstream(), messageStream::operator()(), processorPolyPatch::order(), fvMeshStitcher::patchCoupleds(), processorFvsPatchField< Type >::patchNeighbourField(), polyMesh::polyMesh(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), collatedFileOperation::processorsDir(), processorTopology::processorTopology(), sampledSurfaces::read(), masterUncollatedFileOperation::read(), uncollatedFileOperation::read(), Time::readModifiedObjects(), masterUncollatedFileOperation::readObjects(), masterUncollatedFileOperation::readStream(), masterUncollatedFileOperation::relativeObjectPath(), sampledSets::sampleType(), sampledSurfaces::sampleType(), Pstream::scatter(), Pstream::scatterList(), Time::setControls(), fvMeshSubset::setLargeCellSubset(), LUscalarMatrix::solve(), cellsToCellsStabilisation::stabilise(), patchToPatchStabilisation::stabilise(), LduMatrix< Type, DType, LUType >::symmetric(), lduMatrix::symmetric(), syncTools::syncEdgeMap(), syncTools::syncPointMap(), multicomponentThermo::syncSpeciesActive(), processorPolyPatch::topoChange(), externalCoupledMixedFvPatchField< Type >::transferData(), externalCoupledTemperatureMixedFvPatchScalarField::transferData(), fvMesh::unconform(), cellsToCellsStabilisation::update(), patchToPatchStabilisation::update(), lduMatrix::updateMatrixInterfaces(), fileOperation::updateStates(), streamlines::write(), sampledSets::write(), sampledSurfaces::write(), volFieldValue::writeFileHeaderLocation(), collatedFileOperation::writeObject(), polyMesh::writeObject(), and masterOFstream::~masterOFstream().
|
inlinestatic |
Have support for threads.
Definition at line 405 of file UPstream.H.
Referenced by 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(), eagerGAMGProcAgglomeration::agglomerate(), manualGAMGProcAgglomeration::agglomerate(), masterCoarsestGAMGProcAgglomeration::agglomerate(), procFacesGAMGProcAgglomeration::agglomerate(), meshRefinement::balanceAndRefine(), distributionMapBase::calcCompactAddressing(), mappedInternalPatchBase::calcMapping(), mappedPatchBase::calcMapping(), decomposedBlockData::calcNumProcs(), lineFace::calcSamples(), meshRefinement::checkCoupledFaceZones(), polyBoundaryMesh::checkParallelSync(), collatedFileOperation::collatedFileOperation(), meshRefinement::collectAndPrint(), fieldValue::combineFields(), Pstream::combineGather(), Foam::combineReduce(), Pstream::combineScatter(), UPstream::commsStruct::commsStruct(), distributionMapBase::compact(), GAMGAgglomeration::continueAgglomerating(), fvMeshDistribute::countCells(), simple::decompose(), fvMeshDistribute::distribute(), distributedTriSurfaceMesh::distribute(), refinementHistory::distribute(), distributionMapBase::distribute(), distributedTriSurfaceMesh::distributedTriSurfaceMesh(), cellsToCells::distributeMesh(), patchToPatch::distributePatch(), distributionMapBase::distributionMapBase(), Pstream::exchange(), distributionMapBase::exchangeAddressing(), Pstream::exchangeSizes(), extendedCentredCellToCellStencil::extendedCentredCellToCellStencil(), extendedCentredCellToFaceStencil::extendedCentredCellToFaceStencil(), extendedCentredFaceToCellStencil::extendedCentredFaceToCellStencil(), extendedUpwindCellToFaceStencil::extendedUpwindCellToFaceStencil(), distributedTriSurfaceMesh::findNearest(), coordSet::gather(), decomposedBlockData::gather(), Pstream::gather(), Foam::gatherAndFlatten(), PatchTools::gatherAndMerge(), Pstream::gatherList(), decomposedBlockData::gatherSlaveData(), globalIndex::globalIndex(), hostCollatedFileOperation::hostCollatedFileOperation(), UPstream::lastSlave(), Pstream::listCombineGather(), Pstream::listCombineScatter(), LUscalarMatrix::LUscalarMatrix(), Pstream::mapCombineGather(), Pstream::mapCombineScatter(), Cloud< ParticleType >::mapMesh(), masterUncollatedFileOperation::masterOp(), MPPICCloud< CloudType >::motion(), Cloud< ParticleType >::move(), masterUncollatedFileOperation::NewIFstream(), argList::parse(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), distributionMapBase::printLayout(), collatedFileOperation::processorsDir(), processorTopology::processorTopology(), masterUncollatedFileOperation::read(), uncollatedFileOperation::read(), decomposedBlockData::readBlocks(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readStream(), distributionMapBase::receive(), InteractionLists< ParticleType >::receiveReferredData(), Foam::reduce(), meshRefinement::refineAndBalance(), meshRefinement::refineCandidates(), regionSizeDistribution::regionSum(), Foam::returnReduce(), sampledSurfaces::sampleType(), Pstream::scatter(), Pstream::scatterList(), masterUncollatedFileOperation::scatterList(), distributionMapBase::schedule(), distributionMapBase::send(), InteractionLists< ParticleType >::sendReferredData(), Time::setControls(), fvMeshSubset::setLargeCellSubset(), ParSortableList< Type >::sort(), cellsToCells::tgtMeshSendCells(), patchToPatch::tgtPatchSendFaces(), globalMeshData::topoChange(), patchInjectionBase::topoChange(), externalCoupledMixedFvPatchField< Type >::transferData(), externalCoupledTemperatureMixedFvPatchScalarField::transferData(), distributor::update(), loadBalancer::update(), decomposedBlockData::writeBlocks(), and masterOFstream::~masterOFstream().
|
inlinestatic |
Process index of the master.
Definition at line 417 of file UPstream.H.
Referenced by simple::decompose(), PatchTools::gatherAndMerge(), LUscalarMatrix::LUscalarMatrix(), UPstream::master(), masterUncollatedFileOperation::NewIFstream(), argList::parse(), masterUncollatedFileOperation::read(), decomposedBlockData::readBlocks(), masterUncollatedFileOperation::scatterList(), distributionMapBase::schedule(), globalMeshData::sharedPoints(), LUscalarMatrix::solve(), syncTools::syncEdgeMap(), syncTools::syncPointMap(), decomposedBlockData::writeBlocks(), and masterOFstream::~masterOFstream().
|
inlinestatic |
Am I the master process.
Definition at line 423 of file UPstream.H.
References UPstream::masterNo().
Referenced by IOerror::abort(), effectivenessHeatExchanger::addSup(), regIOobject::addWatch(), masterUncollatedFileOperation::addWatch(), decomposedBlockData::calcNumProcs(), viewFactor::calculate(), argList::check(), polyBoundaryMesh::checkParallelSync(), argList::checkRootCase(), collatedFileOperation::collatedFileOperation(), fieldValue::combineFields(), commSchedule::commSchedule(), logFiles::createFiles(), simple::decompose(), masterUncollatedFileOperation::dirPath(), systemCall::end(), externalCoupledMixedFvPatchField< Type >::evaluate(), systemCall::execute(), IOerror::exit(), externalCoupledMixedFvPatchField< Type >::externalCoupledMixedFvPatchField(), logFiles::file(), masterUncollatedFileOperation::filePath(), logFiles::files(), probes::findElements(), masterUncollatedFileOperation::findInstance(), masterUncollatedFileOperation::findTimes(), masterUncollatedFileOperation::findWatch(), decomposedBlockData::gather(), PatchTools::gatherAndMerge(), decomposedBlockData::gatherSlaveData(), masterUncollatedFileOperation::getFile(), masterUncollatedFileOperation::getState(), injectionModel::globalScalar01(), hostCollatedFileOperation::hostCollatedFileOperation(), irregular::irregular(), collatedFileOperation::isMasterRank(), jobInfo::jobInfo(), LUscalarMatrix::LUscalarMatrix(), masterUncollatedFileOperation::masterOp(), masterUncollatedFileOperation::NewIFstream(), fileOperation::nProcs(), messageStream::operator()(), argList::parse(), probes::prepare(), decomposedBlockData::read(), sampledSurfaces::read(), masterUncollatedFileOperation::read(), uncollatedFileOperation::read(), decomposedBlockData::readBlocks(), IOdictionary::readData(), masterUncollatedFileOperation::readHeader(), regIOobject::readHeaderOk(), masterUncollatedFileOperation::readObjects(), masterUncollatedFileOperation::readStream(), masterUncollatedFileOperation::removeWatch(), logFiles::resetName(), logFiles::resetNames(), sampledSurfaces::sampleType(), masterUncollatedFileOperation::scatterList(), distributionMapBase::schedule(), masterUncollatedFileOperation::setUnmodified(), globalMeshData::sharedPoints(), jobInfo::signalEnd(), rigidBodyMeshMotion::solve(), rigidBodyMeshMotionSolver::solve(), rigidBodyMotion::solve(), LUscalarMatrix::solve(), ParSortableList< Type >::sort(), syncTools::syncEdgeMap(), syncTools::syncPointMap(), externalCoupledMixedFvPatchField< Type >::transferData(), externalCoupledTemperatureMixedFvPatchScalarField::transferData(), IOobject::typeHeaderOk(), sixDoFRigidBodyMotion::update(), masterUncollatedFileOperation::updateStates(), fileMonitor::updateStates(), solution::upgradeSolverDict(), OFstreamCollator::waitAll(), populationBalanceSizeDistribution::write(), fieldValueDelta::write(), surfaceFieldValue::write(), volFieldValue::write(), histogram::write(), layerAverage::write(), patchCutLayerAverage::write(), streamlines::write(), turbulenceIntensity::write(), wallHeatFlux::write(), wallHeatTransferCoeff::write(), wallShearStress::write(), yPlus::write(), forceCoeffs::write(), forcesBase::write(), residuals::write(), systemCall::write(), time::write(), timeStep::write(), userTimeStep::write(), multiValveEngineState::write(), cloudInfo::write(), rigidBodyPoints::write(), rigidBodyState::write(), sixDoFRigidBodyState::write(), sampledSets::write(), sampledSurfaces::write(), specieReactionRates::write(), jobInfo::write(), OFstreamCollator::write(), decomposedBlockData::writeBlocks(), decomposedBlockData::writeData(), residuals::writeFileHeader(), time::writeFileHeader(), timeStep::writeFileHeader(), userTimeStep::writeFileHeader(), collatedFileOperation::writeObject(), decomposedBlockData::writeObject(), regIOobject::writeObject(), volFieldValue::writeValues(), surfaceFieldValue::writeValues(), 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(), eagerGAMGProcAgglomeration::agglomerate(), manualGAMGProcAgglomeration::agglomerate(), masterCoarsestGAMGProcAgglomeration::agglomerate(), GAMGProcAgglomeration::agglomerate(), distributionMapBase::calcCompactAddressing(), mappedInternalPatchBase::calcMapping(), mappedPatchBase::calcMapping(), points::calcSamples(), lineFace::calcSamples(), viewFactor::calculate(), GAMGAgglomeration::calculateRegionMaster(), meshRefinement::checkCoupledFaceZones(), polyBoundaryMesh::checkParallelSync(), collatedFileOperation::collatedFileOperation(), fieldValue::combineFields(), Pstream::combineGather(), Pstream::combineScatter(), distributionMapBase::compact(), volFieldValue::compareScalars(), fvMeshDistribute::distribute(), distributedTriSurfaceMesh::distribute(), distributionMapBase::distribute(), distributedTriSurfaceMesh::distributedTriSurfaceMesh(), cellsToCells::distributeMesh(), patchToPatch::distributePatch(), distributionMap::distributionMap(), distributionMapBase::distributionMapBase(), globalIndexAndTransform::encode(), Pstream::exchange(), distributionMapBase::exchangeAddressing(), processorField::execute(), patchProbes::findElements(), probes::findElements(), distributedTriSurfaceMesh::findNearest(), coordSet::gather(), lduPrimitiveMesh::gather(), globalIndex::gather(), Pstream::gather(), Foam::gatherAndFlatten(), PatchTools::gatherAndMerge(), GAMGAgglomeration::gatherList(), Pstream::gatherList(), decomposedBlockData::gatherSlaveData(), GAMGProcAgglomeration::globalCellCells(), globalIndex::globalIndex(), particle::hitNonConformalCyclicPatch(), hostCollatedFileOperation::hostCollatedFileOperation(), globalIndex::isLocal(), lduPrimitiveMesh::lduPrimitiveMesh(), Pstream::listCombineGather(), Pstream::listCombineScatter(), globalIndex::localSize(), nonConformalMappedFvPatchBase::map(), Pstream::mapCombineGather(), Pstream::mapCombineScatter(), Cloud< ParticleType >::mapMesh(), masterUncollatedFileOperation::masterOp(), MPPICCloud< CloudType >::motion(), masterUncollatedFileOperation::NewIFstream(), regionSplit::nLocalRegions(), lessProcPatches::operator()(), argList::parse(), PatchPostProcessing< CloudType >::postPatch(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), distributionMapBase::printLayout(), GAMGAgglomeration::procAgglomerateLduAddressing(), GAMGAgglomeration::procAgglomerateRestrictAddressing(), processorTopology::processorTopology(), masterUncollatedFileOperation::read(), uncollatedFileOperation::read(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readStream(), masterUncollatedFileOperation::relativeObjectPath(), sampledSurfaces::sampleType(), globalIndex::scatter(), Pstream::scatter(), Pstream::scatterList(), masterUncollatedFileOperation::scatterList(), distributionMapBase::schedule(), Time::setControls(), fvMeshSubset::setLargeCellSubset(), patchInjectionBase::setPositionAndCell(), ParSortableList< Type >::sort(), CloudFilmTransfer< CloudType >::splashInteraction(), cellsToCells::srcToTgtPoint(), masterUncollatedFileOperation::subRanks(), cellsToCells::tgtMeshSendCells(), patchToPatch::tgtPatchSendFaces(), globalIndex::toGlobal(), globalIndex::toLocal(), externalCoupledMixedFvPatchField< Type >::transferData(), externalCoupledTemperatureMixedFvPatchScalarField::transferData(), loadBalancer::update(), cellsToCellsStabilisation::update(), patchToPatchStabilisation::update(), extendedCellToFaceStencil::writeStencilStats(), and masterOFstream::~masterOFstream().
Definition at line 434 of file UPstream.H.
Referenced by UPstream::baseProcNo(), GAMGAgglomeration::prolongField(), and GAMGAgglomeration::restrictField().
Process ID of given process index.
Definition at line 440 of file UPstream.H.
Referenced by UPstream::baseProcNo(), 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(), LUscalarMatrix::solve(), syncTools::syncEdgeMap(), and syncTools::syncPointMap().
|
inlinestatic |
Process index of last slave.
Definition at line 452 of file UPstream.H.
References UPstream::nProcs().
Referenced by LUscalarMatrix::LUscalarMatrix(), argList::parse(), distributionMapBase::schedule(), globalMeshData::sharedPoints(), LUscalarMatrix::solve(), syncTools::syncEdgeMap(), and syncTools::syncPointMap().
|
inlinestatic |
Communication schedule for linear all-to-master (proc 0)
Definition at line 458 of file UPstream.H.
Referenced by Pstream::combineGather(), Foam::combineReduce(), Pstream::combineScatter(), Pstream::gather(), Pstream::gatherList(), Pstream::listCombineGather(), Pstream::listCombineScatter(), Pstream::mapCombineGather(), Pstream::mapCombineScatter(), masterUncollatedFileOperation::read(), uncollatedFileOperation::read(), Foam::reduce(), Foam::returnReduce(), Pstream::scatter(), and Pstream::scatterList().
|
inlinestatic |
Communication schedule for tree all-to-master (proc 0)
Definition at line 467 of file UPstream.H.
Referenced by Pstream::combineGather(), Foam::combineReduce(), Pstream::combineScatter(), Pstream::gather(), Pstream::gatherList(), Pstream::listCombineGather(), Pstream::listCombineScatter(), Pstream::mapCombineGather(), Pstream::mapCombineScatter(), masterUncollatedFileOperation::read(), uncollatedFileOperation::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(), meshRefinement::collectAndPrint(), extendedCentredCellToCellStencil::compact(), extendedCentredCellToFaceStencil::compact(), extendedCentredFaceToCellStencil::compact(), masterUncollatedFileOperation::cp(), masterUncollatedFileOperation::dirPath(), masterUncollatedFileOperation::exists(), masterUncollatedFileOperation::filePath(), masterUncollatedFileOperation::fileSize(), masterUncollatedFileOperation::findInstance(), 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(), masterUncollatedFileOperation::mkDir(), masterUncollatedFileOperation::mode(), masterUncollatedFileOperation::mv(), masterUncollatedFileOperation::mvBak(), masterUncollatedFileOperation::NewIFstream(), fileOperation::nProcs(), GAMGAgglomeration::procAgglomerateRestrictAddressing(), processorTopology::processorTopology(), GAMGAgglomeration::prolongField(), masterUncollatedFileOperation::read(), uncollatedFileOperation::read(), decomposedBlockData::readBlocks(), masterUncollatedFileOperation::readDir(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readStream(), lduMesh::reduce(), fvMatrix< Type >::relax(), GAMGAgglomeration::restrictField(), masterUncollatedFileOperation::rm(), masterUncollatedFileOperation::rmDir(), distributionMapBase::schedule(), LUscalarMatrix::solve(), processorFvPatch::tag(), processorPolyPatch::tag(), processorCyclicPolyPatch::tag(), globalMeshData::topoChange(), externalCoupledMixedFvPatchField< Type >::transferData(), externalCoupledTemperatureMixedFvPatchScalarField::transferData(), masterUncollatedFileOperation::type(), filmSurfaceVelocityFvPatchVectorField::updateCoeffs(), mappedFlowRateVelocityFvPatchVectorField::updateCoeffs(), mappedInternalValueFvPatchField< Type >::updateCoeffs(), mappedVelocityFluxFvPatchField::updateCoeffs(), greyDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs(), MarshakRadiationFvPatchScalarField::updateCoeffs(), MarshakRadiationFixedTemperatureFvPatchScalarField::updateCoeffs(), wideBandDiffusiveRadiationMixedFvPatchScalarField::updateCoeffs(), coupledTemperatureFvPatchScalarField::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::commsType_.
|
static |
Exit program.
Definition at line 46 of file UPstream.C.
References NotImplemented.
Referenced by 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(), and IOerror::abort().
|
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 84 of file UPstream.C.
References UList< T >::deepCopy().
|
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 375 of file UPstream.C.
References Foam::abort(), UList< T >::begin(), Foam::FatalError, FatalErrorInFunction, Foam::PstreamGlobals::MPICommunicators_, UPstream::parRun(), and UList< T >::size().
|
static |
Receive data from all processors on the master.
Definition at line 95 of file UPstream.C.
Referenced by decomposedBlockData::gather(), and decomposedBlockData::gatherSlaveData().
|
static |
Send data to all processors from the root of the communicator.
Definition at line 110 of file UPstream.C.
Referenced by decomposedBlockData::calcNumProcs().
|
static |
Definition at line 71 of file UPstream.H.
Referenced by PstreamBuffers::finishedSends(), lduMatrix::initMatrixInterfaces(), argList::parse(), decomposedBlockData::readBlocks(), lduMatrix::updateMatrixInterfaces(), and decomposedBlockData::writeBlocks().
|
protected |
Communications type of this stream.
Definition at line 252 of file UPstream.H.
Referenced by UPstream::commsType().
|
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 processorLduInterface::compressedReceive(), processorLduInterface::compressedSend(), processorFvPatchField< Type >::evaluate(), processorFvPatchField< Type >::initEvaluate(), processorFvPatchField< Type >::initInterfaceMatrixUpdate(), processorGAMGInterfaceField::initInterfaceMatrixUpdate(), argList::parse(), 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 Pstream::combineGather(), Foam::combineReduce(), Pstream::combineScatter(), Pstream::gather(), Pstream::gatherList(), Pstream::listCombineGather(), Pstream::listCombineScatter(), Pstream::mapCombineGather(), Pstream::mapCombineScatter(), argList::parse(), masterUncollatedFileOperation::read(), uncollatedFileOperation::read(), Foam::reduce(), Foam::returnReduce(), Pstream::scatter(), and Pstream::scatterList().
|
static |
Default commsType.
Definition at line 272 of file UPstream.H.
Referenced by distributionMapBase::distribute(), lduMatrix::initMatrixInterfaces(), pointBoundaryMesh::movePoints(), polyBoundaryMesh::movePoints(), argList::parse(), processorCyclicFvPatchField< Type >::processorCyclicFvPatchField(), processorTopology::processorTopology(), distributionMapBase::reverseDistribute(), pointBoundaryMesh::topoChange(), polyBoundaryMesh::topoChange(), fvMesh::unconform(), and lduMatrix::updateMatrixInterfaces().
|
static |
Number of polling cycles in processor updates.
Definition at line 275 of file UPstream.H.
Referenced by argList::parse(), and lduMatrix::updateMatrixInterfaces().
|
static |
Default communicator (all processors)
Definition at line 278 of file UPstream.H.
Referenced by decompositionMethod::calcCellCells(), meshRefinement::collectAndPrint(), distributionMapBase::exchangeAddressing(), masterUncollatedFileOperation::findInstance(), masterUncollatedFileOperation::NewIFstream(), messageStream::operator()(), masterUncollatedFileOperation::read(), uncollatedFileOperation::read(), masterUncollatedFileOperation::readHeader(), masterUncollatedFileOperation::readStream(), 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()(), and Foam::reduce().