MPI_INITIALIZED, MPI_Initialized Purpose Determines whether MPI is initialized. C synopsis #include int MPI_Initialized(int *flag); C++ synopsis #include mpi.h bool MPI::Is_initialized(); FORTRAN synopsis include 'mpif.h' or use mpi MPI_INITIALIZED(INTEGER FLAG,INTEGER IERROR) Parameters flag is true if MPI_INIT was called; otherwise is false. IERROR is the FORTRAN return code. It is always the last argument. Description This subroutine determines if MPI is initialized. MPI_INITIALIZED and MPI_GET_VERSION are the only MPI calls that can be made before MPI_INIT is called. Notes Because it is erroneous to call MPI_INIT more than once per task, use MPI_INITIALIZED if there is doubt as to the state of MPI. Related information