Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lynn McGuire Newsgroups: comp.lang.fortran Subject: Re: writing a module file in gfortran 14 Date: Wed, 4 Dec 2024 15:20:04 -0600 Organization: A noiseless patient Spider Lines: 33 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 04 Dec 2024 22:20:05 +0100 (CET) Injection-Info: dont-email.me; posting-host="36a13f14a3385a93743e9e64e80027fe"; logging-data="1172761"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7TEjaCqO1k0QtENItj4a1/KjZUs2qRP0=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:nPULsxkhPIf9vPwfGqkyPZHwYM0= Content-Language: en-US In-Reply-To: Bytes: 1785 On 12/4/2024 2:11 PM, Thomas Koenig wrote: > Lynn McGuire 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). Woof ! I was afraid of that. The Fortran Module definition seems to be very fragile. That is going to be painful to add to my module file. Lynn