Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=ESMF_KIND_I8), | intent(in) | :: | isInit | |||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_InitPrint (isInit, rc) ! !ARGUMENTS: ! ESMF_INIT_TYPE, intent(in) :: isInit integer, intent(out), optional :: rc ! !DESCRIPTION: ! ! Print the status of the isInit flag. ! ! The arguments are: ! \begin{description} ! ! \item [isInit] ! Initialization value to print. ! \item [{[rc]}] ! Return code ! ! \end{description} ! !EOPI ! Initialize return code; assume routine not imlemented if (present(rc)) rc = ESMF_RC_NOT_IMPL select case (isInit) case(ESMF_INIT_UNDEFINED) print *, 'Object is UNDEFINED' case (ESMF_INIT_DEFINED) print *, 'Object is DEFINED' case (ESMF_INIT_CREATED) print *, 'Object has been CREATED' case (ESMF_INIT_DELETED) print *, 'Object has been DELETED' case default print *, 'Object is in unknown state' end select if (present (rc)) rc = ESMF_SUCCESS end subroutine ESMF_InitPrint