converter software for fortran 77 to fortran 90

16,625

Solution 1

Here is a python solution that I helped write: https://github.com/arktools/fortran_tools

It successfully converted the entire airforce f77 datcom code to f90, so it is well tested. I will be adding some more features as I have time.

If anyone finds it useful/ and makes modifications, feel free to contribute to the project.

Solution 2

The first hit on a Google query for "fortran 77 convert 90" returned this page, which has 3 free tools and 2 commercial ones listed (after clicking the link for "Subprograms, Converters, Key Works"). I've not used Fortran in quite a while, and can't vouch for the quality of any of these tools.

Solution 3

I'd recommend Lemon Lab f2f. I'm a bit biased, since I was the original developer, but my motivation was due to the fact that I didn't think the alternatives worked very well. Give it a try if you like.

Solution 4

The free program convert (http://www.nag.co.uk/nagware/Examples/convert.f90) will convert from Fortran 77 fixed-source form to Fortran 90/95/2003 free-source form and make some simple transformations, such as declarations. There are also some commercial products, such as SPAG (http://www.polyhedron.com/spag0html).

Solution 5

I have found and used three programs convert.f90 (Michael Metcalf), preconvert.f90 (Purple Sage Computing Solutions, Inc.) and to_f90.f90 (Alan Miller).

None of them worked 100% like I expected. Results depends on how closely your source matches what the programs expect to see.

For your convenience I have zipped the source files up and hosted them here: Source Files

I have used Compaq Visual Fortran 6.5 to compile into three separate projects. If you want the projects also use this link CVF 6.5 Projects

Best of luck.

Share:
16,625

Related videos on Youtube

yellow
Author by

yellow

Updated on July 17, 2020

Comments

  • yellow
    yellow almost 4 years

    i have coding for fortran 77 but i want to converted to fortran 90..where can i donwload the converter software??

  • naught101
    naught101 almost 12 years
    Works well for my simple purposes (which include avoiding using fortran whenever possible).
  • Randel
    Randel over 10 years
    Thanks! The first URL seems to go directly to nag.co.uk. Do you have an updated URL for the program? Or do you have any recommended program convert from Fortran 90 to Fortran 77?
  • John Alexiou
    John Alexiou about 10 years
    I wonder why I got a downvote without a comment?
  • Adolfo Correa
    Adolfo Correa about 4 years
    The two links are broken
  • John Alexiou
    John Alexiou over 3 years
    Sadly this is a deal link now.

Related