Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.07 KB

MPI_Finalized.3.rst

File metadata and controls

64 lines (41 loc) · 1.07 KB

MPI_Finalized

:ref:`MPI_Finalized` - Checks whether MPI has been finalized

SYNTAX

C Syntax

#include <mpi.h>

int MPI_Finalized(int *flag)

Fortran Syntax

USE MPI
! or the older form: INCLUDE 'mpif.h'

MPI_FINALIZED(FLAG, IERROR)
    LOGICAL FLAG
    INTEGER IERROR

Fortran 2008 Syntax

USE mpi_f08

MPI_Finalized(flag, ierror)
    LOGICAL, INTENT(OUT) :: flag
    INTEGER, OPTIONAL, INTENT(OUT) :: ierror

OUTPUT PARAMETER

  • flag : True if MPI was finalized, and false otherwise (logical).
  • ierror : Fortran only: Error status (integer).

DESCRIPTION

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 (:ref:`MPI_Initialized` is another).

ERRORS

.. seealso:: :ref:`MPI_Init`