ComIn 0.5.1
ICON Community Interface
Loading...
Searching...
No Matches
mpi_handshake.c File Reference

Go to the source code of this file.

Macro Definition Documentation

◆ mh_assert

#define mh_assert ( exp,
msg,
comm )
Value:
{ \
if (!((exp))) \
mh_abort(((msg)), ((comm)), __FILE__, __LINE__); \
}

Definition at line 73 of file mpi_handshake.c.

◆ mh_mpi_call

#define mh_mpi_call ( call,
comm )
Value:
do { \
int error_code = (call); \
if (error_code != MPI_SUCCESS) \
mh_mpi_error(error_code, comm); \
} while (0)

Definition at line 66 of file mpi_handshake.c.

Function Documentation

◆ mh_abort()

static void mh_abort ( const char * error_string,
MPI_Comm comm,
const char * file,
int line )
static

Definition at line 55 of file mpi_handshake.c.

◆ mh_mpi_error()

static void mh_mpi_error ( int error_code,
MPI_Comm comm )
static

Definition at line 42 of file mpi_handshake.c.

◆ mpi_handshake()

void mpi_handshake ( char const ** group_names,
MPI_Comm * group_comms,
size_t n,
MPI_Comm comm )

Definition at line 79 of file mpi_handshake.c.

◆ mpi_handshake_c2f()

void mpi_handshake_c2f ( int n,
char const ** group_names,
MPI_Fint * group_comms,
MPI_Fint comm )

Definition at line 169 of file mpi_handshake.c.

◆ mpi_handshake_dummy()

void mpi_handshake_dummy ( MPI_Comm comm)

Definition at line 179 of file mpi_handshake.c.