Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | name | |||
character(len=*), | intent(in) | :: | value | |||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_VMSetEnv(name, value, rc) ! ! !ARGUMENTS: character(*), intent(in) :: name character(*), intent(in) :: value integer, intent(out), optional :: rc ! ! !DESCRIPTION: ! Set environment variable cached in the Global VM. Potentially override what ! came from the shell environment. ! ! The arguments are: ! \begin{description} ! \item [name] ! The name of the environment variable. ! \item [value] ! The value of the environment variable. ! \item[{[rc]}] ! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors. ! \end{description} ! !EOPI !------------------------------------------------------------------------------ integer :: localrc ! local return code ! Call into the C++ interface. call c_ESMC_VMSetEnv(name, value, localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return ! return successfully if (present(rc)) rc = ESMF_SUCCESS end subroutine ESMF_VMSetEnv