Loading...
Searching...
No Matches
PstreamGlobals.C File Reference
Include dependency graph for PstreamGlobals.C:

Go to the source code of this file.

Macros

#define defineType(Idx, BaseType)
#define defineUserType(Idx, Count, BaseType, Name)
#define defineCode(Idx, CodeType)

Detailed Description

Original source file PstreamGlobals.C

Definition in file PstreamGlobals.C.

Macro Definition Documentation

◆ defineType

#define defineType ( Idx,
BaseType )
Value:
{ \
dataTypesCount_[int(UPstream::dataTypes::Idx)] = 1; \
MPIdataTypes_[int(UPstream::dataTypes::Idx)] = BaseType; \
}

Referenced by Foam::PstreamGlobals::initDataTypes().

◆ defineUserType

#define defineUserType ( Idx,
Count,
BaseType,
Name )
Value:
{ \
dataTypesCount_[int(UPstream::dataTypes::Idx)] = Count; \
auto& dt = MPIdataTypes_[int(UPstream::dataTypes::Idx)]; \
MPI_Type_contiguous(Count, BaseType, &dt); \
MPI_Type_set_name(dt, Name); \
MPI_Type_commit(&dt); \
}

Referenced by Foam::PstreamGlobals::initDataTypes().

◆ defineCode

#define defineCode ( Idx,
CodeType )
Value:
MPIopCodes_[int(UPstream::opCodes::Idx)] = CodeType;

Referenced by Foam::PstreamGlobals::initOpCodes().