Identify version of Fortran of this code for the LF compiler

南楼画角 提交于 2019-12-06 09:25:03

Real*8 is not part of Fortran, and has never been part of Fortran. So the strict answer to your question is it is not Fortran of any vintage.

However going on what you have shown apart from Real*8 it is Fortran 90 or later. Fixed source form is still part of the language (though I would fail any students I have for using it) so it not an indicator of the vintage of the code. However after a quick look at the above I can see the following features which came into the standard language in Fortran 90:

  • Mixed case (outside character variables and constants)
  • Underscore in symbol name
  • Implicit None
  • :: in variable declarations and comma separated attribute lists
  • Variable names longer than 6 characters
  • Double inverted commas (") to delimit character strings
  • Do ... End Do (I assume you have missed out the End Do for some reason as otherwise the fragments above make no sense whatsoever)
  • == to test equality
  • Intent for dummy arguments
  • Array sections
  • Array constructors

There may be others.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!