Re: [mpich-discuss] mpich2-1.0.7 file mpif.h and fortran compiler g95
    cornelis.broeders at web.de 
    cornelis.broeders at web.de
       
    Sat Oct 11 05:33:47 CDT 2008
    
    
  
problem is reproducable with following procedures:
1) create file savetest.F with 4 lines:  
     save
#include "sav.h"
      stop
      end
2) create file sav.h with 2 lines:
      integer*4 j
      save j
3) run g95 result:
g95 -o savetest savetest.F
In file sav.h:2
    Included at savetest.F:2
      save j
          1
Error: SAVE statement at (1) follows blanket SAVE statement
4) for completeness gfortran: 
gfortran -o savetest savetest.F
sav.h:2.10:
    Included at savetest.F:3:
      save j
         1
Warning: SAVE statement at (1) follows blanket SAVE statement
sav.h:1.17:
    Included at savetest.F:3:
      integer*4 j
                1
Warning: Duplicate SAVE attribute specified at (1)
I hope this information helps.
C.H.M. Broeders     http://www.cornelis-broeders.de     
> -----Ursprüngliche Nachricht-----
> Von: "Anthony Chan" <chan at mcs.anl.gov>
> Gesendet: 10.10.08 22:23:43
> An: mpich-discuss at mcs.anl.gov
> Betreff: Re: [mpich-discuss] mpich2-1.0.7 file mpif.h and fortran compiler g95
> 
> I don't see mpif.h has any "blanket" SAVE statement (assume I don't
> misinterpret what a "blanket" SAVE is).  To help us understand the issue,
> can you send us a simple fortran MPI program that illustrates the need
> of such a construct in mpif.h ?
> 
> Thanks,
> A.Chan
> 
> ----- "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?
> > Best regards,  
> > 
> > 
> > 
> > C.H.M. Broeders,       http://www.cornelis-broeders.de
> 
> 
-- 
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/20081011/c867d4c9/attachment.vcf>
    
    
More information about the mpich-discuss
mailing list