|
getEnvironment
This subroutine emulates the C routine getenv, which returns the value of
an environment variable. Location in HEALPix directory tree:
src/f90/mod/extension.F90
FORMAT call getEnvironment(
name, value
)
ARGUMENTS
name & dimensionality |
kind |
in/out |
description |
|
|
|
|
name |
CHR |
IN |
name of the environment variable |
value |
CHR |
OUT |
value of the environment variable |
EXAMPLE:
use extension
character(len=128) :: healpixdir
call getEnvironment('HEALPIX', healpixdir)
print*,healpixdir
Will return the value of the $HEALPIX system variable (if it is defined)
RELATED ROUTINESThis section lists the routines related to getEnvironment
-
getArgument
- returns list of command line arguments
-
nArguments
- returns number of command line arguments
Eric Hivon
2010-06-18
|
|