mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 14:15:30 -04:00
used fortran 2003 GET_ENVIRONMENT_VARIABLE
This commit is contained in:
parent
a238bd67e7
commit
2b89f717db
1 changed files with 4 additions and 1 deletions
|
|
@ -7,6 +7,8 @@
|
|||
character*(*) env_value ! [output] the value of the named environement variable
|
||||
#if defined(CRAY)
|
||||
integer*4 lname, lvalue, lerror
|
||||
#else
|
||||
integer len,status
|
||||
#endif
|
||||
*
|
||||
#if defined(CRAY)
|
||||
|
|
@ -24,7 +26,8 @@
|
|||
* lerror, UNKNOWN_ERR)
|
||||
endif
|
||||
#else
|
||||
call getenv(env_name, env_value)
|
||||
cold call getenv(env_name, env_value)
|
||||
call GET_ENVIRONMENT_VARIABLE(env_name, env_value, len, status)
|
||||
#endif
|
||||
*
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue