PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Mon Apr 28, 2014 12:45 pm Post subject: |
|
|
FTN95 accepts fixed format FORTRAN and free format FORTRAN.
You must use only one format in a given file but object code from different files can be linked together using the linker. So you can mix fixed and free format FORTRAN provided that you keep them in separate files.
FTN95 determines the format from the file extension or from a command line switch /FIXED_FORMAT or /FREE_FORMAT.
The OPTIONS compiler directive (placed in the code before a subprogram) may allow you to use one format for one subprogram and the other for another subprogram (all within one file) but I have never tried this. If it works then I am not sure this is a good idea anyway. |
|