Sujet : Re: writing a module file in gfortran 14
De : tkoenig (at) *nospam* netcologne.de (Thomas Koenig)
Groupes : comp.lang.fortranDate : 04. Dec 2024, 21:11:34
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <viqd1m$12u2e$1@dont-email.me>
References : 1
User-Agent : slrn/1.0.3 (Linux)
Lynn McGuire <
lynnmcguire5@gmail.com> schrieb:
Is the "implicit none" in the proper place in the following code ?
No.
[snip]
You want
module aaa_modules
>
implicit none
>
INTERFACE
SUBROUTINE ABCPAR(ISW,IRETST,IR,IC,PAR,IPHASE)
IMPLICIT NONE
...
because declarations in the outer module have no meaning on
interfaces.
A rather frequent source of confusion, I'm afraid (I got bitten
by this myself in the past).