Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

nested informat statements

alegarra
Beginner
506 Views
I have a read statement of the kind

read(1,'(a20,87510(1x,a1))') id(i), snp(i,:)

which fails to read in ifort (it reads beyond the end of the line) but reads nicely in gfortran.

Reading with

read(1,'(a20,a175020') id(i), bigword

works nicely.

I have checked my data files over and over and I am certain they are correct. Is there any limit to the size of nested informats as the one above?

Using ifort 12.1.2 20111128

Thanks
Andres
0 Kudos
1 Reply
Steven_L_Intel1
Employee
506 Views
There are limits but you are nowhere near them. Please provide a tarball with a test program and sample data file that we can look at.
0 Kudos
Reply