ESMF_CompStatusGet Subroutine

public recursive subroutine ESMF_CompStatusGet(compStatus, clockIsPresent, hconfigIsPresent, configIsPresent, configFileIsPresent, vmIsPresent, isIsPresent, esIsPresent, gridIsPresent, meshIsPresent, locstreamIsPresent, xgridIsPresent, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_CompStatus), intent(in) :: compStatus
logical, intent(out), optional :: clockIsPresent
logical, intent(out), optional :: hconfigIsPresent
logical, intent(out), optional :: configIsPresent
logical, intent(out), optional :: configFileIsPresent
logical, intent(out), optional :: vmIsPresent
logical, intent(out), optional :: isIsPresent
logical, intent(out), optional :: esIsPresent
logical, intent(out), optional :: gridIsPresent
logical, intent(out), optional :: meshIsPresent
logical, intent(out), optional :: locstreamIsPresent
logical, intent(out), optional :: xgridIsPresent
integer, intent(out), optional :: rc

Calls

proc~~esmf_compstatusget~~CallsGraph proc~esmf_compstatusget ESMF_CompStatusGet proc~esmf_compstatusgetinit ESMF_CompStatusGetInit proc~esmf_compstatusget->proc~esmf_compstatusgetinit proc~esmf_imerrs ESMF_IMErrS proc~esmf_compstatusget->proc~esmf_imerrs proc~esmf_initcheckshallow ESMF_InitCheckShallow proc~esmf_imerrs->proc~esmf_initcheckshallow proc~esmf_logfounderror ESMF_LogFoundError proc~esmf_imerrs->proc~esmf_logfounderror esmf_breakpoint esmf_breakpoint proc~esmf_logfounderror->esmf_breakpoint proc~esmf_logrc2msg ESMF_LogRc2Msg proc~esmf_logfounderror->proc~esmf_logrc2msg proc~esmf_logwrite ESMF_LogWrite proc~esmf_logfounderror->proc~esmf_logwrite c_esmc_loggeterrormsg c_esmc_loggeterrormsg proc~esmf_logrc2msg->c_esmc_loggeterrormsg c_esmc_vmwtime c_esmc_vmwtime proc~esmf_logwrite->c_esmc_vmwtime proc~esmf_logclose ESMF_LogClose proc~esmf_logwrite->proc~esmf_logclose proc~esmf_logflush ESMF_LogFlush proc~esmf_logwrite->proc~esmf_logflush proc~esmf_logopenfile ESMF_LogOpenFile proc~esmf_logwrite->proc~esmf_logopenfile proc~esmf_utiliounitflush ESMF_UtilIOUnitFlush proc~esmf_logwrite->proc~esmf_utiliounitflush proc~esmf_utilstring2array ESMF_UtilString2Array proc~esmf_logwrite->proc~esmf_utilstring2array

Called by

proc~~esmf_compstatusget~~CalledByGraph proc~esmf_compstatusget ESMF_CompStatusGet proc~esmf_cplcompget ESMF_CplCompGet proc~esmf_cplcompget->proc~esmf_compstatusget proc~esmf_gridcompget ESMF_GridCompGet proc~esmf_gridcompget->proc~esmf_compstatusget proc~esmf_scicompget ESMF_SciCompGet proc~esmf_scicompget->proc~esmf_compstatusget

Source Code

  recursive subroutine ESMF_CompStatusGet(compStatus, clockIsPresent, &
    hconfigIsPresent, configIsPresent, configFileIsPresent, vmIsPresent, &
    isIsPresent, esIsPresent, gridIsPresent, meshIsPresent, &
    locstreamIsPresent, xgridIsPresent, rc)
!
! !ARGUMENTS:
    type(ESMF_CompStatus), intent(in)            :: compStatus
    logical,               intent(out), optional :: clockIsPresent
    logical,               intent(out), optional :: hconfigIsPresent
    logical,               intent(out), optional :: configIsPresent
    logical,               intent(out), optional :: configFileIsPresent
    logical,               intent(out), optional :: vmIsPresent
    logical,               intent(out), optional :: isIsPresent
    logical,               intent(out), optional :: esIsPresent
    logical,               intent(out), optional :: gridIsPresent
    logical,               intent(out), optional :: meshIsPresent
    logical,               intent(out), optional :: locstreamIsPresent
    logical,               intent(out), optional :: xgridIsPresent
    integer,               intent(out), optional :: rc

!
! !DESCRIPTION:
!      Returns information about the component status bits.
!
!EOPI
!------------------------------------------------------------------------------
    integer                 :: localrc      ! local return code
    
    ! Initialize return code; assume not implemented until success is certain
    localrc = ESMF_RC_NOT_IMPL
    if (present(rc)) rc = ESMF_RC_NOT_IMPL
    
    ESMF_INIT_CHECK_SHALLOW(ESMF_CompStatusGetInit, compStatus, rc)
    
    if (present(clockIsPresent)) then
      clockIsPresent = compStatus%clockIsPresent
    endif

    if (present(hconfigIsPresent)) then
      hconfigIsPresent = compStatus%configIsPresent ! hconfig kept in config
    endif

    if (present(configIsPresent)) then
      configIsPresent = compStatus%configIsPresent
    endif

    if (present(configFileIsPresent)) then
      configFileIsPresent = compStatus%configFileIsPresent
    endif

    if (present(vmIsPresent)) then
      vmIsPresent = compStatus%vmIsPresent
    endif

    if (present(isIsPresent)) then
      isIsPresent = compStatus%isIsPresent
    endif

    if (present(esIsPresent)) then
      esIsPresent = compStatus%esIsPresent
    endif

    if (present(gridIsPresent)) then
      gridIsPresent = compStatus%gridIsPresent
    endif

    if (present(meshIsPresent)) then
      meshIsPresent = compStatus%meshIsPresent
    endif

    if (present(locstreamIsPresent)) then
      locstreamIsPresent = compStatus%locstreamIsPresent
    endif

    if (present(xgridIsPresent)) then
      xgridIsPresent = compStatus%xgridIsPresent
    endif

    ! Return successfully
    if (present(rc)) rc = ESMF_SUCCESS

  end subroutine ESMF_CompStatusGet