Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_Info), | intent(in) | :: | info | |||
type(ESMF_KeywordEnforcer), | optional | :: | keywordEnforcer | |||
integer, | intent(out), | optional | :: | rc |
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