Sujet : Re: Is there a way in Fortran to designate an integer value as integer*8 ?
De : lynnmcguire5 (at) *nospam* gmail.com (Lynn McGuire)
Groupes : comp.lang.fortranDate : 04. Oct 2024, 05:44:24
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vdnrr9$3qrq$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Mozilla Thunderbird
On 10/3/2024 5:34 PM, Lawrence D'Oliveiro wrote:
On Thu, 3 Oct 2024 17:13:40 -0500, Lynn McGuire wrote:
On 10/3/2024 5:08 PM, Lawrence D'Oliveiro wrote:
>
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+.
Pick up a Fortran-90-or-later spec. This is not your father’s Fortran any
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.
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.
Lynn