[J3] Typo in Example for GET_ENVIRONMENT_VARIABLE intrinsic?
Bill Long
longb at cray.com
Thu Jan 16 23:27:37 EST 2020
> On Jan 16, 2020, at 10:17 PM, Vipul Parekh via J3 <j3 at mailman.j3-fortran.org> wrote:
>
> 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?
Yes. A short “editorial correction” paper for the J3 meeting in February would be in order.
Cheers,
Bill
>
> Thanks,
> Vipul Parekh
Bill Long longb at cray.com
Principal Engineer, Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9143
Cray, a Hewlett Packard Enterprise company/ 2131 Lindau Lane/ Suite 1000/ Bloomington, MN 55425
More information about the J3
mailing list