ESMF_CompStatusGetInit Function

private recursive function ESMF_CompStatusGetInit(compStatus) result(CompStatusGetInit)

Arguments

Type IntentOptional Attributes Name
type(ESMF_CompStatus), intent(in), optional :: compStatus

Return Value integer(kind=ESMF_KIND_I8)


Source Code

  recursive function ESMF_CompStatusGetInit(compStatus) &
    result (CompStatusGetInit)
!
! !RETURN VALUE:
    ESMF_INIT_TYPE :: CompStatusGetInit
!
! !ARGUMENTS:
    type(ESMF_CompStatus), intent(in), optional :: compStatus
!
! !DESCRIPTION:
!   Access init code.
!
!   The arguments are:
!   \begin{description}
!   \item [connection]
!     CompStatus object.
!   \end{description}
!
!EOPI
!------------------------------------------------------------------------------
    if (present(compStatus)) then
      CompStatusGetInit = ESMF_INIT_GET(compStatus)
    else
      CompStatusGetInit = ESMF_INIT_DEFINED
    endif

  end function ESMF_CompStatusGetInit