getEnvironment

This subroutine emulates the C routine getenv, which returns the value of an environment variable.
Starting with release 3.60, it calls the F2003 extension subroutine get_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 ROUTINES

This section lists the routines related to getEnvironment

getArgument
returns list of command line arguments
nArguments
returns number of command line arguments

Version 3.82, 2022-07-28