- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page