Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_ArraySpec), | intent(in) | :: | arrayspec | |||
type(ESMF_KeywordEnforcer), | optional | :: | keywordEnforcer | |||
integer, | intent(out), | optional | :: | rank | ||
type(ESMF_TypeKind_Flag), | intent(out), | optional | :: | typekind | ||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_ArraySpecGet(arrayspec, keywordEnforcer, rank, typekind, rc) ! ! !ARGUMENTS: type(ESMF_ArraySpec), intent(in) :: arrayspec type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below integer, intent(out), optional :: rank type(ESMF_TypeKind_Flag), intent(out), optional :: typekind integer, intent(out), optional :: rc ! ! !STATUS: ! \begin{itemize} ! \item\apiStatusCompatibleVersion{5.2.0r} ! \end{itemize} ! ! !DESCRIPTION: ! Returns information about the contents of an {\tt ESMF\_ArraySpec}. ! ! The arguments are: ! \begin{description} ! \item[arrayspec] ! The {\tt ESMF\_ArraySpec} to query. ! \item[{[rank]}] ! Array rank (dimensionality -- 1D, 2D, etc). Maximum possible is 7D. ! \item[{[typekind]}] ! Array typekind. See section \ref{const:typekind} for valid values. ! \item[{[rc]}] ! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors. ! \end{description} ! !EOP !------------------------------------------------------------------------------ ! initialize return code; assume routine not implemented if (present(rc)) rc = ESMF_RC_NOT_IMPL ! Check init status of arguments ESMF_INIT_CHECK_SHALLOW(ESMF_ArraySpecGetInit, arrayspec, rc) ! Get arrayspec contents if(present(rank)) rank = arrayspec%rank if(present(typekind)) typekind = arrayspec%typekind ! return successfully if (present(rc)) rc = ESMF_SUCCESS end subroutine ESMF_ArraySpecGet