Loading...
Searching...
No Matches
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 \
<< Foam::abort(FatalError); \
} \
}
errorManip< error > abort(error &err)
Definition errorManip.H:139
#define FOAM_UNLIKELY(cond)
Definition stdFoam.H:64

Definition at line 670 of file UPstreamWindow.C.

Function Documentation

◆ call_window_allocate()

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()

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: