Nodes of different colours represent the following:
Solid arrows point from a parent (sub)module to the submodule which is descended from it. Dashed arrows point from a module being used to the module or program unit using it. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | EnvName | |||
character(len=*), | intent(out), | optional | :: | EnvValue |
SUBROUTINE Get_Environment_Variable(EnvName,EnvValue) !,EnvLength,EnvStatus,EnvTrim)
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN May 2006
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Use often implemented extension routine "GetEnv" to mimic the
! F2003 standard "Get_Environment_Variable".
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE DFPORT
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: EnvName ! name of environment variable
CHARACTER(len=*), INTENT(OUT), OPTIONAL :: EnvValue ! result of request
! INTEGER, INTENT(OUT), OPTIONAL :: EnvLength ! Length of Value (in characters)
! INTEGER, INTENT(OUT), OPTIONAL :: EnvStatus ! 0 if variable exists/assigned a value,
! ! 1 if variable does not exist
! ! 2 or greater -- processor/compiler dependent
! LOGICAL, INTENT(IN), OPTIONAL :: EnvTrim ! false if trailing blanks are significant
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
CHARACTER(len=255) :: Value
CALL GetEnv(EnvName,Value)
IF (PRESENT(EnvValue)) EnvValue=Value
! IF (PRESENT(EnvLength)) EnvLength=Len_Trim(Value)
! IF (PRESENT(EnvStatus) .and. Value /= ' ') THEN
! EnvStatus=0
! ELSE
! EnvStatus=1
! ENDIF
RETURN
END SUBROUTINE Get_Environment_Variable