Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_VMId), | intent(inout) | :: | vmId | |||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_VMIdCreate_s(vmId, rc) ! ! !ARGUMENTS: type(ESMF_VMId), intent(inout) :: vmId integer, intent(out), optional :: rc ! ! !DESCRIPTION: ! Create an ESMF_VMId object. This allocates memory on the C side. ! ! The arguments are: ! \begin{description} ! \item[vmId] ! ESMF_VMId object ! \item[{[rc]}] ! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors. ! \end{description} ! !EOPI !------------------------------------------------------------------------------ integer :: localrc ! local return code ! initialize return code; assume routine not implemented localrc = ESMF_RC_NOT_IMPL if (present(rc)) rc = ESMF_RC_NOT_IMPL ! Call into the C++ interface call c_ESMC_VMIdCreate(vmId, localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return ! return successfully if (present(rc)) rc = ESMF_SUCCESS end subroutine ESMF_VMIdCreate_s