ESMF_IO_YAMLContentInit Subroutine

public subroutine ESMF_IO_YAMLContentInit(yaml, keywordEnforcer, cflag, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_IO_YAML) :: yaml
type(ESMF_KeywordEnforcer), optional :: keywordEnforcer
type(ESMF_IO_YAMLContent_Flag), intent(in), optional :: cflag
integer, intent(out), optional :: rc

Calls

proc~~esmf_io_yamlcontentinit~~CallsGraph proc~esmf_io_yamlcontentinit ESMF_IO_YAMLContentInit c_esmc_io_yamlcinit c_esmc_io_yamlcinit proc~esmf_io_yamlcontentinit->c_esmc_io_yamlcinit proc~esmf_logfounderror ESMF_LogFoundError proc~esmf_io_yamlcontentinit->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 proc~esmf_logclose->proc~esmf_logflush proc~esmf_logflush->proc~esmf_utiliounitflush proc~esmf_utilarray2string ESMF_UtilArray2String proc~esmf_logflush->proc~esmf_utilarray2string proc~esmf_logopenfile->proc~esmf_utiliounitflush proc~esmf_utiliounitget ESMF_UtilIOUnitGet proc~esmf_logopenfile->proc~esmf_utiliounitget

Called by

proc~~esmf_io_yamlcontentinit~~CalledByGraph proc~esmf_io_yamlcontentinit ESMF_IO_YAMLContentInit proc~nuopc_freeformatcreatefdreadyaml NUOPC_FreeFormatCreateFDReadYAML proc~nuopc_freeformatcreatefdreadyaml->proc~esmf_io_yamlcontentinit program~esmf_io_yamlutest ESMF_IO_YAMLUTest program~esmf_io_yamlutest->proc~esmf_io_yamlcontentinit proc~nuopc_freeformatcreatefdyaml NUOPC_FreeFormatCreateFDYAML proc~nuopc_freeformatcreatefdyaml->proc~nuopc_freeformatcreatefdreadyaml proc~nuopc_fielddictionarysetupfile NUOPC_FieldDictionarySetupFile proc~nuopc_fielddictionarysetupfile->proc~nuopc_freeformatcreatefdyaml interface~nuopc_fielddictionarysetup NUOPC_FieldDictionarySetup interface~nuopc_fielddictionarysetup->proc~nuopc_fielddictionarysetupfile

Source Code

  subroutine ESMF_IO_YAMLContentInit(yaml, keywordEnforcer, cflag, &
    rc)
!
! !ARGUMENTS:
    type(ESMF_IO_YAML)                                  :: yaml
type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below
    type(ESMF_IO_YAMLContent_Flag), intent(in), optional :: cflag
    integer,                      intent(out), optional :: rc

! !DESCRIPTION:
!     Create content from parsed YAML in a {\tt ESMF\_YAML\_IO} object.
!
!     The arguments are:
!     \begin{description}
!     \item[{yaml}]
!          Output parsed contents of this {\tt ESMF\_IO_YAML} object.
!     \item[{cflag}]
!          Return parsed content in {\tt ESMF_IO_YAMLContent_Flag} format
!     \item[{[rc]}]
!          Return code; equals {\tt ESMF\_SUCCESS} if there are no errors.
!     \end{description}
!
!EOPI

    ! local return code
    integer :: localrc
    type(ESMF_IO_YAMLContent_Flag) :: localcflag
!
!   ! Assume failure until success
    if (present(rc)) rc = ESMF_RC_NOT_IMPL

    localcflag = ESMF_IOYAML_CONTENT_UNSET
    if (present(cflag)) localcflag = cflag

    call c_ESMC_IO_YAMLCInit(yaml, localcflag, localrc)
    if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, &
      ESMF_CONTEXT, rcToReturn=rc)) return

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

  end subroutine ESMF_IO_YAMLContentInit