A Fortran 90 program for converting fixed-format Fortran 77 code to Fortran 90 free-format. Other changes replace old Fortran constructs with more modern ones.
The conversions made include:
1. Standard format (column 7-72) converted to free-format.
2. DO loops and IF blocks indented.
3. Most labels are removed from loops and replaced with END DO, CYCLE, EXIT, and DO-loop constructs where appropriate.
4. 3-way arithmetic IFs converted to IF .. THEN .. ELSE constructs.
5. TYPE and INTENT declarations inserted for all subroutine and function arguments.
6. Computed GOTOs converted to SELECT CASE constructs.
7. Embedded blanks are removed from numerical constants. They are illegal in free format.
A Fortran 90 program for converting fixed-format Fortran 77 code to Fortran 90 free-format. Other changes replace old Fortran constructs with more modern ones.
The conversions made include:
1. Standard format (column 7-72) converted to free-format.
2. DO loops and IF blocks indented.
3. Most labels are removed from loops and replaced with END DO, CYCLE, EXIT, and DO-loop constructs where appropriate.
4. 3-way arithmetic IFs converted to IF .. THEN .. ELSE constructs.
5. TYPE and INTENT declarations inserted for all subroutine and function arguments.
6. Computed GOTOs converted to SELECT CASE constructs.
7. Embedded blanks are removed from numerical constants. They are illegal in free format.
To install to-f90, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install to-f90
To see what files were installed by to-f90, run:
port contents to-f90
To later upgrade to-f90, run:
sudo port selfupdate && sudo port upgrade to-f90
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.