[J3] Typo in Example for GET_ENVIRONMENT_VARIABLE intrinsic?

Vipul Parekh parekhvs at gmail.com
Thu Jan 16 23:17:11 EST 2020


18-007r1 document in page 374, in paragraph 5 under the Example shows
the following:

CHARACTER(:),ALLOCATABLE :: FILENAME
INTEGER :: NAMELEN
CALL GET_ENVIRONMENT_VARIABLE ("DATAFILE", LENGTH=NAMELEN)
IF (LENGTH>0) THEN
ALLOCATE(CHARACTER(LENGTH) :: FILENAME)
CALL GET_ENVIRONMENT_VARIABLE("DATAFILE", FILENAME)
END IF

Should not the 4th and 5th lines of this Example reference NAMELEN
instead of LENGTH?

Thanks,
Vipul Parekh


More information about the J3 mailing list