Classes | Namespaces | Functions | Variables
UPstream.C File Reference
Include dependency graph for UPstream.C:

Go to the source code of this file.

Classes

class  addcommsTypeToOpt
 Registered reader for UPstream::defaultCommsType. More...
 

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Functions

 defineTypeNameAndDebug (UPstream, 0)
 
 registerOptSwitch ("floatTransfer", bool, Foam::UPstream::floatTransfer)
 
 registerOptSwitch ("nProcsSimpleSum", int, Foam::UPstream::nProcsSimpleSum)
 
 registerOptSwitch ("nPollProcInterfaces", int, Foam::UPstream::nPollProcInterfaces)
 
 registerOptSwitch ("maxCommsSize", int, Foam::UPstream::maxCommsSize)
 

Variables

const Foam::label nPredefinedComm
 
addcommsTypeToOpt addcommsTypeToOpt_ ("commsType")
 

Detailed Description

Original source file UPstream.C

Note
Included by global/globals.C

Definition in file UPstream.C.

Function Documentation

◆ registerOptSwitch() [1/4]

registerOptSwitch ( "floatTransfer"  ,
bool  ,
Foam::UPstream::floatTransfer   
)

◆ registerOptSwitch() [2/4]

registerOptSwitch ( "nProcsSimpleSum"  ,
int  ,
Foam::UPstream::nProcsSimpleSum   
)

◆ registerOptSwitch() [3/4]

registerOptSwitch ( "nPollProcInterfaces"  ,
int  ,
Foam::UPstream::nPollProcInterfaces   
)

◆ registerOptSwitch() [4/4]

registerOptSwitch ( "maxCommsSize"  ,
int  ,
Foam::UPstream::maxCommsSize   
)

Variable Documentation

◆ nPredefinedComm

const Foam::label nPredefinedComm
Initial value:
= []()
{
const Foam::labelList singleProc(Foam::one{}, 0);
(void) Foam::UPstream::allocateCommunicator(-1, singleProc, false);
(void) Foam::UPstream::allocateCommunicator(-2, singleProc, false);
}()
static label allocateCommunicator(const label parent, const labelUList &subRanks, const bool doPstream=true)
Allocate a new communicator with subRanks of parent communicator.
Definition: UPstream.C:139
static label nComms() noexcept
Number of currently defined communicators.
Definition: UPstream.H:381
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
Definition: one.H:57

Definition at line 470 of file UPstream.C.