ESMF_AttributeReadArrayBundle Subroutine

private subroutine ESMF_AttributeReadArrayBundle(target, fileName, keywordEnforcer, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_ArrayBundle), intent(inout) :: target
character(len=*), intent(in) :: fileName
type(ESMF_KeywordEnforcer), optional :: keywordEnforcer
integer, intent(out), optional :: rc

Calls

proc~~esmf_attributereadarraybundle~~CallsGraph proc~esmf_attributereadarraybundle ESMF_AttributeReadArrayBundle none~getinfo ESMF_InfoDescribe%GetInfo proc~esmf_attributereadarraybundle->none~getinfo proc~esmf_arraybundlegetinit ESMF_ArrayBundleGetInit proc~esmf_attributereadarraybundle->proc~esmf_arraybundlegetinit proc~esmf_imerr ESMF_IMErr proc~esmf_attributereadarraybundle->proc~esmf_imerr proc~esmf_infodestroy ESMF_InfoDestroy proc~esmf_attributereadarraybundle->proc~esmf_infodestroy proc~esmf_inforeadjson ESMF_InfoReadJSON proc~esmf_attributereadarraybundle->proc~esmf_inforeadjson proc~esmf_logfounderror ESMF_LogFoundError proc~esmf_attributereadarraybundle->proc~esmf_logfounderror proc~getinfoarray ESMF_InfoDescribe%getInfoArray none~getinfo->proc~getinfoarray proc~getinfoarraybundle ESMF_InfoDescribe%getInfoArrayBundle none~getinfo->proc~getinfoarraybundle proc~getinfocplcomp ESMF_InfoDescribe%getInfoCplComp none~getinfo->proc~getinfocplcomp proc~getinfodistgrid ESMF_InfoDescribe%getInfoDistGrid none~getinfo->proc~getinfodistgrid proc~getinfofield ESMF_InfoDescribe%getInfoField none~getinfo->proc~getinfofield proc~getinfofieldbundle ESMF_InfoDescribe%getInfoFieldBundle none~getinfo->proc~getinfofieldbundle proc~getinfogeom ESMF_InfoDescribe%getInfoGeom none~getinfo->proc~getinfogeom proc~getinfogrid ESMF_InfoDescribe%getInfoGrid none~getinfo->proc~getinfogrid proc~getinfogridcomp ESMF_InfoDescribe%getInfoGridComp none~getinfo->proc~getinfogridcomp proc~getinfolocstream ESMF_InfoDescribe%getInfoLocStream none~getinfo->proc~getinfolocstream proc~getinfomesh ESMF_InfoDescribe%getInfoMesh none~getinfo->proc~getinfomesh proc~getinfoscicomp ESMF_InfoDescribe%getInfoSciComp none~getinfo->proc~getinfoscicomp proc~getinfostate ESMF_InfoDescribe%getInfoState none~getinfo->proc~getinfostate proc~esmf_imerr->proc~esmf_logfounderror proc~esmf_initcheckdeep ESMF_InitCheckDeep proc~esmf_imerr->proc~esmf_initcheckdeep proc~esmf_infodestroy->proc~esmf_logfounderror interface~c_info_destroy c_info_destroy proc~esmf_infodestroy->interface~c_info_destroy proc~esmf_inforeadjson->proc~esmf_logfounderror interface~c_info_read_json c_info_read_json proc~esmf_inforeadjson->interface~c_info_read_json interface~esmf_infocreate ESMF_InfoCreate proc~esmf_inforeadjson->interface~esmf_infocreate 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

Called by

proc~~esmf_attributereadarraybundle~~CalledByGraph proc~esmf_attributereadarraybundle ESMF_AttributeReadArrayBundle interface~esmf_attributeread ESMF_AttributeRead interface~esmf_attributeread->proc~esmf_attributereadarraybundle

Source Code

subroutine ESMF_AttributeReadArrayBundle(target, filename, keywordenforcer, rc)
  ! 39.11.32 - removed schemaFileName
  type(ESMF_ArrayBundle), intent(inout) :: target
  character(len=*), intent(in) :: fileName
type(ESMF_KeywordEnforcer), optional :: keywordEnforcer ! must use keywords below
  integer, intent(out), optional :: rc

  integer :: localrc
  type(ESMF_InfoDescribe) :: eidesc
  type(ESMF_Info) :: isrc, idst

  localrc = ESMF_FAILURE
  if (present(rc)) rc = ESMF_RC_NOT_IMPL
  ! Check object initialization
  ESMF_INIT_CHECK_DEEP(ESMF_ArrayBundleGetInit, target, rc)

  isrc = ESMF_InfoReadJSON(filename, rc=localrc)
  if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, ESMF_CONTEXT, rcToReturn=rc)) return

  idst = eidesc%GetInfo(target, rc=localrc)
  if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, ESMF_CONTEXT, rcToReturn=rc)) return

  call ESMF_InfoDestroy(idst, rc=localrc)
  if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, ESMF_CONTEXT, rcToReturn=rc)) return

  idst%ptr = isrc%ptr

  if (present(rc)) rc = ESMF_SUCCESS
end subroutine ESMF_AttributeReadArrayBundle