UPstreamWindow.C File Reference
Include dependency graph for UPstreamWindow.C:

Go to the source code of this file.

Macros

#define CheckFail_Win_get_attr(returnCode, flag, attribute)
 

Functions

static std::pair< void *, int64_t > call_window_allocate (Foam::UPstream::Window *self, MPI_Comm communicator, std::streamsize num_elements, const int disp_unit, const bool shared)
 
static bool call_window_create (Foam::UPstream::Window *self, MPI_Comm communicator, void *baseptr, std::streamsize num_elements, const int disp_unit)
 

Detailed Description

Original source file UPstreamWindow.C

Definition in file UPstreamWindow.C.

Macro Definition Documentation

◆ CheckFail_Win_get_attr

#define CheckFail_Win_get_attr (   returnCode,
  flag,
  attribute 
)
Value:
{ \
if (FOAM_UNLIKELY((MPI_SUCCESS != returnCode) || !flag)) \
{ \
FatalError("MPI_Win_get_attr()") \
<< "Failed getting attribute " << attribute << endl \
} \
}
error FatalError
Error stream (stdout output on all processes), with additional &#39;FOAM FATAL ERROR&#39; header text and sta...
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:529
#define FOAM_UNLIKELY(cond)
Definition: stdFoam.H:64
errorManip< error > abort(error &err)
Definition: errorManip.H:139

Definition at line 669 of file UPstreamWindow.C.

Function Documentation

◆ call_window_allocate()

static std::pair<void*,int64_t> call_window_allocate ( Foam::UPstream::Window self,
MPI_Comm  communicator,
std::streamsize  num_elements,
const int  disp_unit,
const bool  shared 
)
static

Definition at line 79 of file UPstreamWindow.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, FOAM_UNLIKELY, UPstream::parRun(), and Cast::to_mpi().

Here is the call graph for this function:

◆ call_window_create()

static bool call_window_create ( Foam::UPstream::Window self,
MPI_Comm  communicator,
void *  baseptr,
std::streamsize  num_elements,
const int  disp_unit 
)
static

Definition at line 229 of file UPstreamWindow.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, FOAM_UNLIKELY, UPstream::parRun(), and Cast::to_mpi().

Here is the call graph for this function: