[mpich-discuss] Re: G95 problem with combination of save and include statements

cornelis.broeders at web.de cornelis.broeders at web.de
Mon Oct 27 06:15:34 CDT 2008


Hello,
thank you very much for your fast reply with the solution. Your suggestion works fine on my system.
Best regards and many thanks for your efforts!
C. Broeders

> -----Ursprüngliche Nachricht-----
> Von: "Andy Vaught" <andyv at firstinter.net>
> Gesendet: 27.10.08 02:31:26
> An: cornelis.broeders at web.de
> Betreff: Re: G95 problem with combination of save and include statements


> On Fri, 24 Oct 2008 cornelis.broeders at web.de wrote:
> 
> > Hello,
> 
> > I encounter a serious problem during installation of the Monte Carlo
> > code mcnpx (tested with g95) and mpich2 for paralleization, being
> > supported by mcnpx using g95. This compilation is working on LINUX OS
> > with several compiler like Intel and LaHey without problems. I could
> > reduce the problem to the attached files: savetest.F including sav.h.
> > Using g95 the compilation aborts with the message:
> >
> > In file sav.h:2
> >     Included at savetest.F:2
> >       save j
> >           1
> > Error: SAVE statement at (1) follows blanket SAVE statement
> 
> > The ifort (intel) and g77 do not produce any messages, lf95 (LaHey)
> > and gfortran produce messages like g95, but are handling them as
> > "warnings". I am doing this tests on a MANDRIVA2008.1 system with
> > recent versions of the compiler. My question: would it be possible to
> > create an option or modification that g95 is not aborting with "error
> > " for this case? Thank you very much for your efforts.
> 
>   It's -fmultiple-save, already there.  It turns out that the constraint
> only holds for F95, and was removed in F2003.  I've fixed it so that it
> only complains in -std=f95.
> 
>    Thanks,
>      Andy
> 
> 
> 

-- 
http://www.cornelis-broeders.de 




C.H.M. Broeders,       http://www.cornelis-broeders.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cornelis Broeders.vcf
Type: text/x-vcard
Size: 279 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20081027/aa975345/attachment.vcf>


More information about the mpich-discuss mailing list