-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code files should all have .f90 (or .F90) extension instead of .f #151
Comments
There are some codes using F77 standard
…On Mon, Oct 4, 2021 at 2:00 PM Edward Hartnett ***@***.***> wrote:
All the code files have a .f extension. Yet they use F90 features.
The compilers are mostly OK with this because they just ignore the
extension. But it is confusing and also confuses doxygen.
The simplest answer would be to rename each file to a .f90 extension.
@Hang-Lei-NOAA <https://github.com/Hang-Lei-NOAA> @BrianCurtis-NOAA
<https://github.com/BrianCurtis-NOAA> @kgerheiser
<https://github.com/kgerheiser> any objections to this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#151>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKWSMFEOAECR5ATZD7XRHJ3UFHTUDANCNFSM5FJ5X5GA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
F77 is valid F90, but F90 is not valid F77. So we can rename all the files to .F90, or leave the F77 ones .f. |
It's not a matter of whether they use Fortran 90/77 features. It's fixed formatting vs. free-formatting. You couldn't just re-name them without changing the formatting or adding a compiler option. |
The only thing I seem to have to change are the line continuations. Fixed format likes the continuation line on the second line, like this:
Whereas F90 likes it at the end of the first line:
Once I changed all the continuation lines, addfield.f becomes addfield.F90, and compiles and passes all tests. I'll put up a PR with just that one file change. If we all agree it looks good, I will change the continuation characters in the rest of the codebase and we will convert everything to free-format F90 files. Perhaps we can convert all our F77 code before the 50th anniversary of F77! |
All the code files have a .f extension. Yet they use F90 features.
The compilers are mostly OK with this because they just ignore the extension. But it is confusing and also confuses doxygen.
The simplest answer would be to rename each file to a .f90 extension.
@Hang-Lei-NOAA @BrianCurtis-NOAA @kgerheiser any objections to this?
The text was updated successfully, but these errors were encountered: