One of the goals of MPI-/ was to allow for layered libraries. In order for a library to do this cleanly, it needs to know if MPI-/ is active. In MPI-/ the function MPI_INITIALIZED was provided to tell if MPI-/ had been initialized. The problem arises in knowing if MPI-/ has been finalized. Once MPI-/ has been finalized it is no longer active and cannot be restarted. A library needs to be able to determine this to act accordingly. To achieve this the following function is needed:
int MPI_Finalized(int *flag)
MPI_FINALIZED(FLAG, IERROR)LOGICAL FLAG
INTEGER IERROR
int MPI::Is_finalized()
bool
This routine returns true if MPI_FINALIZE has completed. It is legal to call MPI_FINALIZED before MPI_INIT and after MPI_FINALIZE.
MPI-Standard for MARMOT