We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
这是我帮助编写的一个Python解决方案: https://github.com/arktools/fortran_tools
它成功了将整个空军 f77 datcom 代码转换为 f90,因此经过了充分测试。当我有时间时,我将添加更多功能。
如果有人发现它有用/并进行修改,请随时为该项目做出贡献。
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.
Google 查询“fortran 77 Convert 90”的第一次点击返回此页面 ,其中列出了 3 个免费工具和 2 个商业工具(单击“子程序、转换器、关键作品”链接后)。我已经有一段时间没有使用 Fortran 了,无法保证这些工具的质量。
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.
我推荐Lemon Lab f2f。我有点偏见,因为我是最初的开发人员,但我的动机是因为我认为替代方案效果不佳。如果你喜欢的话就来尝试一下吧。
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.
免费程序转换 (http://www.nag.co.uk/nagware /Examples/convert.f90)将从 Fortran 77 固定源形式转换为 Fortran 90/95/2003 自由源形式,并进行一些简单的转换,例如声明。还有一些商业产品,例如 SPAG (http://www.polyhedron.com/spag0html )。
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).
我发现并使用了三个程序
convert.f90
(Michael Metcalf)、preconvert.f90
(Purple Sage Computer Solutions, Inc.) 和to_f90.f90
代码>(艾伦·米勒)。他们都没有像我预期的那样 100% 工作。结果取决于您的源与程序期望看到的内容的匹配程度。
为了您的方便,我将源文件压缩并托管在此处:
源文件
我使用 Compaq Visual Fortran 6.5 编译成三个独立的项目。如果您想要这些项目,也可以使用此链接
CVF 6.5 项目
祝你好运。
I have found and used three programs
convert.f90
(Michael Metcalf),preconvert.f90
(Purple Sage Computing Solutions, Inc.) andto_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.