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

fortran 77

anand_b_
Beginner
452 Views

i have programmes in fortran 77. it contains continuation lines. when i compile using ifort i get lot of errors. i suppose they r due to some incompatibilities. the programes are tested and have no errors. how can i run using latest ifort. i guess i need to convert to f95 or so in format free style. thanks in anticipation. pl help 

0 Kudos
1 Reply
Xiaoping_D_Intel
Employee
452 Views

By default ifort will determine the source format based the file extension:

    Files with an extension of .f90, .F90, or .i90 are free-format source files.

    Files with an extension of .f, .for, .FOR, .ftn, .FTN, .fpp, .FPP, or .i are fixed-format files.

 

You can also use compiler option "-free" or "-fixed" to specify the file format.

Another possible reason for the error is the length of statement field in a fixed format source file. By default the length is 72. It can be changed by option "-extend-source <size>" where the "<size>" can be 72, 80 or 132.

Thanks,

Xiaoping Duan

Intel Customer Support

0 Kudos
Reply