Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_VM), | intent(out) | :: | vm | |||
type(ESMF_KeywordEnforcer), | optional | :: | keywordEnforcer | |||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_VMGetGlobal(vm, keywordEnforcer, rc) ! ! !ARGUMENTS: type(ESMF_VM), intent(out) :: vm type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below integer, intent(out), optional :: rc ! ! !STATUS: ! \begin{itemize} ! \item\apiStatusCompatibleVersion{5.2.0r} ! \end{itemize} ! ! !DESCRIPTION: ! \begin{sloppypar} ! Get the global {\tt ESMF\_VM} object. This is the VM object ! that is created during {\tt ESMF\_Initialize()} and is the ultimate ! parent of all VM objects in an ESMF application. It is identical to the VM ! object returned by {\tt ESMF\_Initialize(..., vm=vm, ...)}. ! \end{sloppypar} ! ! The {\tt ESMF\_VMGetGlobal()} call provides access to information about the ! global execution context via the global VM. This call is necessary because ! ESMF does not created a global ESMF Component during ! {\tt ESMF\_Initialize()} that could be queried for information about ! the global execution context of an ESMF application. ! ! Usage of {\tt ESMF\_VMGetGlobal()} from within Component code is ! strongly discouraged. ESMF Components should only access their own VM ! objects through Component methods. Global information, if required by ! the Component user code, should be passed down to the Component from the ! driver through the Component calling interface. ! ! The arguments are: ! \begin{description} ! \item[vm] ! Upon return this holds the {\tt ESMF\_VM} object of the global execution ! context. ! \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 ! Copy the handle to the global VM into the output variable vm = GlobalVM ! return successfully if (present(rc)) rc = ESMF_SUCCESS end subroutine ESMF_VMGetGlobal