Closed tomchor closed 3 years ago
It is old FORTRAN77 (like Platon's backbone here) as by explicit statement of your code (line 3), comments starting by C
-- even if the old standard permits today's !
(a reference), reserving the first 6 columns for a (here not used) GOTO
instruction, the author's aim to limit the chars per line (the guide on line 53), etc.
To advance further:
C
by !
or substitute the former by the laterfprettify
and check if the prettified version still yields the results intended.GOTO
instruction, you may consider to remove the leading empty colons and run fprettify
a twice.An illustration of this suggestion is attached in the .zip below. If choosing FORTRAN77 instead of e.g., Fortran2018, ftnchek might be useful for you. example.zip
Thanks! Indeed your example looks really nice. I think I'm going to follow your suggestions, although it looks like some hard work!
fprettify can not deal with fortran77 so I'll close this. Thanks for the suggestions @nbehrnd
Hi, I'm trying to prettyfy the code in this repo: https://github.com/tomchor/diablo/tree/master/source
However, when I issue
fprettify diablo.f --indent 2
I get this error:So my first question is: is that format allowed? (I think it's written in F77)
If the answer is yes, then how can I fix my case?
Thanks!
PS: The error happens when I install using both conda and pip.