oneAPI Registration, Download, Licensing and Installation
Support for Getting Started questions related to download, Installation and licensing for Intel oneAPI Toolkits and software development tools.

IntelHPC kit for fortran legacy code.

ksmky
Beginner
423 Views

Before I used Visual Studio and Intel's OneAPI to run fortran code, and it was working. However, after a long time I tried again (installed again) same settings but code doesn't run because of the synthax erros which is due to the fact that fortran program has legacy code inside. As I know referring to the f77 structure but file extension is f90. For instance I have GOTO statements, 'C' for comment, '+' for a line continuation etc which are not valid in modern Fortran. Compiler used to handle this but now it doesn't. Did OneAPI removed support for that? I'd like to know how to solve this. Thank you in advance.

0 Kudos
1 Reply
ksmky
Beginner
394 Views

I found the solution:
If Fortran script is in fixed format (I referred it as legacy in my question) then use .f ending instead of .f90. Previous devs (scientists) failed to do it and OneAPI failed to handle it. But again as I mentioned compiler used to handle it (.f90 extension but code in fixed format), maybe issue is IDE. Anyways, an update to any of these made the file extension important. Please, correct the statement if I'm wrong.
Note: You can delete the post if you think it is not important.

0 Kudos
Reply