ESMF_InfoCreateFromInfo Function

private function ESMF_InfoCreateFromInfo(info, keywordEnforcer, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_Info), intent(in) :: info
type(ESMF_KeywordEnforcer), optional :: keywordEnforcer
integer, intent(out), optional :: rc

Return Value type(ESMF_Info)


Calls

proc~~esmf_infocreatefrominfo~~CallsGraph proc~esmf_infocreatefrominfo ESMF_InfoCreateFromInfo interface~c_info_copy c_info_copy proc~esmf_infocreatefrominfo->interface~c_info_copy proc~esmf_logfounderror ESMF_LogFoundError proc~esmf_infocreatefrominfo->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_infocreatefrominfo~~CalledByGraph proc~esmf_infocreatefrominfo ESMF_InfoCreateFromInfo interface~esmf_infocreate ESMF_InfoCreate interface~esmf_infocreate->proc~esmf_infocreatefrominfo proc~esmf_attributeaddattpackstdinfo ESMF_AttributeAddAttPackStdInfo proc~esmf_attributeaddattpackstdinfo->interface~esmf_infocreate proc~esmf_attributewritearray ESMF_AttributeWriteArray proc~esmf_attributewritearray->interface~esmf_infocreate proc~esmf_attributewritearraybundle ESMF_AttributeWriteArrayBundle proc~esmf_attributewritearraybundle->interface~esmf_infocreate proc~esmf_attributewritecplcomp ESMF_AttributeWriteCplComp proc~esmf_attributewritecplcomp->interface~esmf_infocreate proc~esmf_attributewritedistgrid ESMF_AttributeWriteDistGrid proc~esmf_attributewritedistgrid->interface~esmf_infocreate proc~esmf_attributewritefield ESMF_AttributeWriteField proc~esmf_attributewritefield->interface~esmf_infocreate proc~esmf_attributewritefieldbundle ESMF_AttributeWriteFieldBundle proc~esmf_attributewritefieldbundle->interface~esmf_infocreate proc~esmf_attributewritegrid ESMF_AttributeWriteGrid proc~esmf_attributewritegrid->interface~esmf_infocreate proc~esmf_attributewritegridcomp ESMF_AttributeWriteGridComp proc~esmf_attributewritegridcomp->interface~esmf_infocreate proc~esmf_attributewritelocstream ESMF_AttributeWriteLocStream proc~esmf_attributewritelocstream->interface~esmf_infocreate proc~esmf_attributewritemesh ESMF_AttributeWriteMesh proc~esmf_attributewritemesh->interface~esmf_infocreate proc~esmf_attributewritescicomp ESMF_AttributeWriteSciComp proc~esmf_attributewritescicomp->interface~esmf_infocreate proc~esmf_attributewritestate ESMF_AttributeWriteState proc~esmf_attributewritestate->interface~esmf_infocreate proc~esmf_infodescribeinitialize ESMF_InfoDescribe%ESMF_InfoDescribeInitialize proc~esmf_infodescribeinitialize->interface~esmf_infocreate proc~esmf_infoinquire ESMF_InfoInquire proc~esmf_infoinquire->interface~esmf_infocreate proc~esmf_inforeadjson ESMF_InfoReadJSON proc~esmf_inforeadjson->interface~esmf_infocreate proc~esmf_infosethconfig ESMF_InfoSetHConfig proc~esmf_infosethconfig->interface~esmf_infocreate program~esmf_infoarrayutest ESMF_InfoArrayUTest program~esmf_infoarrayutest->interface~esmf_infocreate program~esmf_infosyncutest ESMF_InfoSyncUTest program~esmf_infosyncutest->interface~esmf_infocreate program~esmf_infotutorial ESMF_InfoTutorial program~esmf_infotutorial->interface~esmf_infocreate program~esmf_infoutest ESMF_InfoUTest program~esmf_infoutest->interface~esmf_infocreate

Source Code

function ESMF_InfoCreateFromInfo(info, keywordEnforcer, rc)
! !ARGUMENTS:
  type(ESMF_Info), intent(in) :: info
type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below
  integer, intent(out), optional :: rc
! !RETURN VALUE:
  type(ESMF_Info) :: ESMF_InfoCreateFromInfo
!
! !DESCRIPTION:
!     Create an \texttt{ESMF\_Info} object from another \texttt{ESMF\_Info} object.
!     The returned object is a deep copy of the source object.
!
!     The arguments are:
!     \begin{description}
!     \item [info]
!       The \texttt{ESMF\_Info} object acting as the source data.
!     \item [{[rc]}]
!       Return code; equals {\tt ESMF\_SUCCESS} if there are no errors.
!     \end{description}
!EOP

  integer :: localrc

  localrc = ESMF_FAILURE
  if (present(rc)) rc = ESMF_FAILURE

  ESMF_InfoCreateFromInfo%ptr = c_info_copy(info%ptr, localrc)
  if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, ESMF_CONTEXT, rcToReturn=rc)) return

  if (present(rc)) rc = ESMF_SUCCESS
end function ESMF_InfoCreateFromInfo