Liste des Groupes | Revenir à cl fortran |
On Thu, 3 Oct 2024 17:13:40 -0500, Lynn McGuire wrote:I started writing Fortran IV in 1975. Been down a lot of roads since then. I've written software in Fortran IV and 77, Pascal, C, C++, Curl, etc. They are all running together now, I am getting old.
On 10/3/2024 5:08 PM, Lawrence D'Oliveiro wrote:Pick up a Fortran-90-or-later spec. This is not your father’s Fortran any>>
On Thu, 3 Oct 2024 14:32:28 -0500, Lynn McGuire wrote:
>I have 197 common blocks included from dedicated files and a massive>
number of equivalences all over the place.
Try getting rid of at least some of them, by using “contains”.
What does "contains" do ? My knowledge of Fortran stopped at F77+.
more. “contains” lets you put subroutines and functions directly in the
main program, so they can refer directly to program globals instead of
having to go through “common” blocks.
I posted an example of modernized Fortran code right here a few months
ago, and I see there’s a comment from you on it, so you must have seen it.
Les messages affichés proviennent d'usenet.