- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This question is not specific to Intel Fortran, but I thought I would ask the community anyway since someone out there may have a good recommendation. We have inherited some horrid Fortran code that is generally does not use indents - making it very difficult to follow IF blocks and DO loops. Dev studio can auto indent C++ code, but it appears it cannot with Fortran. Does anyone know of any automatic tools to do this for Fortran please?
Thank you!
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tony
While there are good refactoring tools that can handle advanced tasks, the simplest way would be to just use "Replace" for common things such as if and do through out the code. You may write a macro for that is the Visual Studio.
Check "floppy" at www.fortran.com. I believe it is free.
If I may say so at the Intel Forum, the Photran refactoring can do things such as adding implicit none.
Abhi
While there are good refactoring tools that can handle advanced tasks, the simplest way would be to just use "Replace" for common things such as if and do through out the code. You may write a macro for that is the Visual Studio.
Check "floppy" at www.fortran.com. I believe it is free.
If I may say so at the Intel Forum, the Photran refactoring can do things such as adding implicit none.
Abhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - abhimodak
Tony
While there are good refactoring tools that can handle advanced tasks, the simplest way would be to just use "Replace" for common things such as if and do through out the code. You may write a macro for that is the Visual Studio.
Check "floppy" at www.fortran.com. I believe it is free.
If I may say so at the Intel Forum, the Photran refactoring can do things such as adding implicit none.
Abhi
While there are good refactoring tools that can handle advanced tasks, the simplest way would be to just use "Replace" for common things such as if and do through out the code. You may write a macro for that is the Visual Studio.
Check "floppy" at www.fortran.com. I believe it is free.
If I may say so at the Intel Forum, the Photran refactoring can do things such as adding implicit none.
Abhi
I am test driving FLOPPY right now - its looks good, but stops at the 77 standard;shame it wasnt taken further todo atleast f90 or f95.........
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use the product plusFort and the included SPAG module (from "spaghetti code") of Polyhedron Software (www.polyhedron.co.uk) to reformat old and less old Fortran sources. SPAG provides many options for formatting including identation, renumbering of format numbers, and many more. It's not a bargain, but worth its price.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Some year ago I found f2f90 by Peter A Rochford and f90ppr by Michael Olagnon. I used one of then, but don't remember wich one ( my memory is realy miserable). They are at http://gd.tuwien.ac.at/languages/fortran/freemarket/free.html
Regards,
Geraldo
Regards,
Geraldo

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page