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

Increasing fixed form line length doesn't seem to be working

ferrad
New User
404 Views
I have the following bit of code:
!DEC$ FIXEDFORMLINESIZE: 132
!DEC$ REAL:8
program test
real*8 y,x,a,b
integer klo
klo = 20
a = 100.0 * (xs(klo+1) - x)
b = 100.0 * (x - xs(klo))
acosh3 = a * ya(klo) + b * ya(klo+1) + (a * (a*a - 1.0) * yd(klo) + b * (b*b - 1.0) * y2a(klo+1)) * 1.0e-4 / 6.0
end
which doesn't compile (the acosh3 = line is on one line). I get:
D: est est.for(13): Error: Syntax error, found END-OF-STATEMENT when expecting one of: ( ...
It works fine if the line is truncated before column 72 and continued. But this should work as I have set max line length to 132.
Adrian
0 Kudos
3 Replies
Steven_L_Intel1
Employee
404 Views
Works ok for me in ifort 9.0. What compiler are you using?
0 Kudos
ferrad
New User
404 Views
I did a bit more experimenting. I was compling from the VS7 environment - so I tried creating a new project and it worked fine,then I went back into my old project, and it fails. So I checked the command line arguments and found that the /fpp switch is set and that causes the failure, ie.
ifort /fpp /c test.for
fails with the test example (after declaring the4 arrays).
Why?
Adrian
0 Kudos
Steven_L_Intel1
Employee
404 Views
I guess that fpp isn't recognizing the directive. I'll report that to the developers.
0 Kudos
Reply