ESMF_ConfigSetIntI4 Subroutine

private subroutine ESMF_ConfigSetIntI4(config, value, keywordEnforcer, label, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_Config), intent(inout) :: config
integer(kind=ESMF_KIND_I4), intent(in) :: value
type(ESMF_KeywordEnforcer), optional :: keywordEnforcer
character(len=*), intent(in), optional :: label
integer, intent(out), optional :: rc

Calls

proc~~esmf_configsetinti4~~CallsGraph proc~esmf_configsetinti4 ESMF_ConfigSetIntI4 interface~esmf_configsetattribute ESMF_ConfigSetAttribute proc~esmf_configsetinti4->interface~esmf_configsetattribute proc~esmf_configgetinit ESMF_ConfigGetInit proc~esmf_configsetinti4->proc~esmf_configgetinit proc~esmf_imerr ESMF_IMErr proc~esmf_configsetinti4->proc~esmf_imerr interface~esmf_configsetattribute->proc~esmf_configsetinti4 proc~esmf_configsetstring ESMF_ConfigSetString interface~esmf_configsetattribute->proc~esmf_configsetstring proc~esmf_initcheckdeep ESMF_InitCheckDeep proc~esmf_imerr->proc~esmf_initcheckdeep proc~esmf_logfounderror ESMF_LogFoundError proc~esmf_imerr->proc~esmf_logfounderror proc~esmf_configsetstring->proc~esmf_configgetinit proc~esmf_configsetstring->proc~esmf_imerr proc~esmf_configsetstring->proc~esmf_logfounderror proc~esmf_configgetstring ESMF_ConfigGetString proc~esmf_configsetstring->proc~esmf_configgetstring 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 proc~esmf_configgetstring->proc~esmf_configgetinit proc~esmf_configgetstring->proc~esmf_imerr proc~esmf_configgetstring->proc~esmf_logfounderror proc~esmf_configfindlabel ESMF_ConfigFindLabel proc~esmf_configgetstring->proc~esmf_configfindlabel proc~index_ index_ proc~esmf_configgetstring->proc~index_ 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_configsetinti4~~CalledByGraph proc~esmf_configsetinti4 ESMF_ConfigSetIntI4 interface~esmf_configsetattribute ESMF_ConfigSetAttribute proc~esmf_configsetinti4->interface~esmf_configsetattribute interface~esmf_configsetattribute->proc~esmf_configsetinti4 proc~f_esmf_configsetstring f_esmf_configsetstring proc~f_esmf_configsetstring->interface~esmf_configsetattribute proc~singleparset SingleParSet proc~singleparset->interface~esmf_configsetattribute program~esmf_hconfigutest ESMF_HConfigUTest program~esmf_hconfigutest->interface~esmf_configsetattribute

Source Code

      subroutine ESMF_ConfigSetIntI4(config, value, &
        keywordEnforcer, label, rc)

! !ARGUMENTS:
      type(ESMF_Config),     intent(inout)         :: config
      integer(ESMF_KIND_I4), intent(in)            :: value
type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below
      character(len=*),      intent(in),  optional :: label
      integer,               intent(out), optional :: rc

!
! !DESCRIPTION: 
!  Sets an integer {\tt value} in the {\tt config} object.
!
!   The arguments are:
!   \begin{description}
!   \item [config]
!     Already created {\tt ESMF\_Config} object.
!   \item [value]
!     Integer value to set. 
!   \item [{[label]}]
!     Identifying attribute label. 
!   \item [{[rc]}]
!     Return code; equals {\tt ESMF\_SUCCESS} if there are no errors.
!   \end{description}
!
!EOPI -------------------------------------------------------------------
!
      integer :: localrc
      character(len=ESMF_MAXSTR) :: logmsg
      character(len=ESMF_MAXSTR) :: newVal
      integer :: i, j, k, m, nchar, ninsert, ndelete, lenThisLine

      ! Initialize return code; assume routine not implemented
      localrc = ESMF_RC_NOT_IMPL
      if (present(rc)) rc = ESMF_RC_NOT_IMPL

      !check variables
      ESMF_INIT_CHECK_DEEP(ESMF_ConfigGetInit,config,rc)

      write(newVal, *) value

      call ESMF_ConfigSetAttribute(config, value=newVal, label=label, rc=rc)

      return
    end subroutine ESMF_ConfigSetIntI4