Open MPI logo

MPI_Finalized(3) man page (version 5.0.0rc2)

  |   Home   |   Support   |   FAQ   |  

« Return to documentation listing

Table of Contents


C]MPI_FinalizedR] - Checks whether MPI has been finalized


C Syntax

C]#include <mpi.h>int MPI_Finalized(int *flag)R]Fortran Syntax

C]USE MPI! or the older form: INCLUDE [aq]mpif.h[aq]MPI_FINALIZED(FLAG, IERROR) LOGICAL FLAG INTEGER IERRORR]Fortran 2008 Syntax

C]USE mpi_f08MPI_Finalized(flag, ierror) LOGICAL, INTENT(OUT) :: flag INTEGER, OPTIONAL, INTENT(OUT) :: ierrorR]Output Parameter

C]flagR] : True if MPI was finalized, and false otherwise (logical).
C]IERRORR] : Fortran only: Error status (integer).


This routine may be used to determine whether MPI has been finalized. It is one of a small number of routines that may be called before MPI is initialized and after MPI has been finalized (C]MPI_InitializedR] is another).


Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. Before the error value is returned, the current MPI error handler is called. By default, this error handler aborts the MPI job, except for I/O function errors. The error handler may be changed with C]MPI_Comm_set_errhandlerR]; the predefined error handler C]MPI_ERRORS_RETURNR] may be used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error.

See Also

C]MPI_InitR](3) C]MPI_Init_threadR](3) C]MPI_InitializedR](3) C]MPI_FinalizeR](3)

Table of Contents

« Return to documentation listing