MI - Fimex
Functions | Variables
mifi_mpi.h File Reference
#include "mpi.h"

Go to the source code of this file.

Functions

void mifi_initialize_mpi (MPI_Comm comm, MPI_Info info)
 
void mifi_free_mpi ()
 
int mifi_mpi_initialized ()
 

Variables

MPI_Comm mifi_mpi_comm
 
MPI_Info mifi_mpi_info
 
int mifi_mpi_size
 
int mifi_mpi_rank
 

Function Documentation

void mifi_free_mpi ( )

Free/uninitialize mifi_mpi_* variables. Must be called before MPI_Finalize()

void mifi_initialize_mpi ( MPI_Comm  comm,
MPI_Info  info 
)

Initialize mifi_mpi_* variables. Must be called after MPI_Init()

Parameters
commMPI_Communication, e.g. MPI_WORLD_COMM
infoMPI_Information, e.g. MPI_INFO_NULL
int mifi_mpi_initialized ( )

check if mifi_initialize_mpi has been called before

Returns
1 on success, 0 on false

Variable Documentation

MPI_Comm mifi_mpi_comm
MPI_Info mifi_mpi_info
int mifi_mpi_rank
int mifi_mpi_size