[mpich-discuss] mpich2-1.0.7 file mpif.h and fortran compiler g95
Rajeev Thakur
thakur at mcs.anl.gov
Mon Oct 13 14:46:26 CDT 2008
> > ----- "cornelis broeders" <cornelis.broeders at web.de> wrote:
> >
> > > Hello,
> > > I encountered the error message "SAVE statement at (1) follows blanket
> > > SAVE statement" during installation of the huge package mcnpx. After
> > > some efforts I found that this message is generally issued by g95 (and
> > > gfortran?) if a program with a previous "save" statement includes a
> > > file, like mpif.h, containing "save var" statements. Putting the SAVE
> > > statements of mpif.h in an exclude construct "#ifndef G95 ... #endif
> > > solved my problem. I propose to include such kind of patch for g95 in
> > > future releases of mpich2. Could somebody comment on this proposal?
This assumes that the user's code has a blanket save statement. How would we
know that beforehand?
Rajeev
More information about the mpich-discuss
mailing list