UPstream.H File Reference
Include dependency graph for UPstream.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UPstream
 Inter-processor communications stream. More...
 
class  UPstream::commsStruct
 Structure for communicating between processors. More...
 
class  UPstream::commsStructList
 Collection of communication structures. More...
 
class  UPstream::communicator
 Wrapper for internally indexed communicator label. Always invokes UPstream::allocateCommunicatorComponents() and UPstream::freeCommunicatorComponents() More...
 
class  UPstream::Communicator
 An opaque wrapper for MPI_Comm with a vendor-independent representation without any <mpi.h> header. More...
 
class  UPstream::Request
 An opaque wrapper for MPI_Request with a vendor-independent representation without any <mpi.h> header. More...
 

Namespaces

 Foam
 Namespace for OpenFOAM.
 
 Foam::PstreamDetail
 Implementation details for UPstream/Pstream/MPI etc.
 
 Foam::PstreamUtils
 Interface handling for UPstream/Pstream/MPI etc.
 

Macros

#define Pstream_declareMethods(Type)
 
#define Pstream_declareMethods(OpName, OpCode)
 
#define Pstream_declareMethods(OpName, OpCode)
 

Functions

Ostream & operator<< (Ostream &, const UPstream::commsStruct &)
 

Detailed Description

Original source file UPstream.H

Definition in file UPstream.H.

Macro Definition Documentation

◆ Pstream_declareMethods [1/3]

#define Pstream_declareMethods (   Type)

Definition at line 2481 of file UPstream.H.

◆ Pstream_declareMethods [2/3]

#define Pstream_declareMethods (   OpName,
  OpCode 
)
Value:
\ \
template<class T> \
static void mpiReduce_##OpName \
( \
T values[], \
int count, \
const int communicator = UPstream::worldComm \
) \
{ \
UPstream::mpiReduce(values, count, OpCode, communicator); \
} \
\ \
template<class T> \
static void mpiAllReduce_##OpName \
( \
T values[], \
int count, \
const int communicator = UPstream::worldComm \
) \
{ \
UPstream::mpiAllReduce(values, count, OpCode, communicator); \
}
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
Definition: HashOps.H:164
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of &#39;true&#39; entries.
Definition: BitOps.H:73

Definition at line 2481 of file UPstream.H.

◆ Pstream_declareMethods [3/3]

#define Pstream_declareMethods (   OpName,
  OpCode 
)

Definition at line 2481 of file UPstream.H.