YetAnotherCoupler 3.5.2
Loading...
Searching...
No Matches
yac_mpi_common.h File Reference
#include <mpi.h>
Include dependency graph for yac_mpi_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define yac_mpi_call(call, comm)
 

Functions

void yac_mpi_error (int error_code, MPI_Comm comm)
 

Macro Definition Documentation

◆ yac_mpi_call

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

check return code of MPI call and call abort function if needed

Definition at line 14 of file yac_mpi_common.h.

Function Documentation

◆ yac_mpi_error()

void yac_mpi_error ( int error_code,
MPI_Comm comm )

report error return of MPI call

Parameters
[in]error_codereturn code of an MPI call
[in]commcommunicator which was used for the respective MPI call

Definition at line 117 of file yac_mpi.c.