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

Column 7 and 72

Frank_M
Beginner
794 Views
This may seem trivial but...
Is there some way to turn off the column 7 - 72 Fixed form line lengths? I have fixed form line length set to 132 but I really prefer to have free form.
0 Kudos
1 Solution
mecej4
Honored Contributor III
794 Views
There is more to free form than a line length of up to 132. The significance of blanks is different, and line continuation is signified differently. It is possible to write Fortran source that is valid in both modes, but few already-written codes are likely to be such.

If your file has a suffix of .f90, it is considered to be free-form.

The compiler also has the options /free and /fixed and /extfor to let you choose the form. Choose the combination that suits your situation.

View solution in original post

0 Kudos
1 Reply
mecej4
Honored Contributor III
795 Views
There is more to free form than a line length of up to 132. The significance of blanks is different, and line continuation is signified differently. It is possible to write Fortran source that is valid in both modes, but few already-written codes are likely to be such.

If your file has a suffix of .f90, it is considered to be free-form.

The compiler also has the options /free and /fixed and /extfor to let you choose the form. Choose the combination that suits your situation.
0 Kudos
Reply