PARAMETER use within FORMAT statements

Peter Willis pwillis@aslenv.com
Mon May 31 18:41:00 GMT 2010


Hello,

I have a code format issue that I am attempting to work out
while converting some source to gfortran F90.

I have PARAMETER 'm' which represents an integer.

I have a READ statement that uses a format reference on line 100.

READ(3,100,ERR=1000) ....

The format statement has an issue whereby the original program
is inserting the PARAMETER 'm' as a record size into the FORMAT statement:

100 FORMAT(<m>F7.6)

Is there a notation, compatible with gfortran F90, for doing this?

Thanks for any enlightenment.


Peter



More information about the Fortran mailing list