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

Continuation Line Error

Tom_B_3
Beginner
514 Views
I have not programmed in Fortran for a while, so maybe things have changed more than I think. I am getting an error for each of my continuation lines in a Format statement. I typically put a number 1-9 in column 6 of the statement to let the compiler know that this is a continuation line, but the compiler is not recognising it. The program compiles fine if I dont put in lines that are continued. I am using version 8.1.029 of the compiler. I have seen in anoth post that there may be a bug in the latest version of the compiler that has to do withcontinuation lines. Is this true, or is there another way to specify continuation lines that I am not aware of? The source is shown below:
Code:
   20 Format(7x,"No",7x,"CPU Time",10x,"X Max",10x,"X Ave",
     1      10x,"Y Max",10x,"Y Ave",10x,"D Max",10x,"D Ave",
     2       10x,"T Max",10x,"T Ave",10x,"S Max",10x,"S Ave",
     3       8x,"Sed Max",8x,"Sed Ave",)
The color scheme makes it look like the continuation characterin column 6 is being treated as a statement number. The 1 2 and 3 are red just like the 20.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
514 Views
The form you are using is called "fixed form" in Fortran - it is the traditional way that was the only thing valid in Fortran 77. My guess is that you have named your source file with a .f90 file type which tells the compiler that it is "free form", in which continuation is indicated by an & at the end of the line to be continued.

If you want fixed-form, name the file with a .f or .for file type.

Does that help?

Message Edited by sblionel on 04-20-2005 02:32 PM

0 Kudos
Reply