/[MITgcm]/MITgcm/tools/build_options/linux_amd64_gfortran
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_amd64_gfortran

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.4 by jmc, Wed Mar 25 15:17:47 2009 UTC revision 1.6 by jahn, Fri Apr 3 21:07:47 2009 UTC
# Line 4  Line 4 
4  #  $Name$  #  $Name$
5  #  #
6    
7  #  Tested with gcc-gfortran v4.0.x as shipped with Fedora Core 4.  #  Tested with gcc-gfortran v4.1.x as shipped with Fedora Core 6,7,8
8  #  It fixes the ' \' versus ' &' terminator problem but some  #         with gcc-gfortran v4.3.x as shipped with Fedora Core 9,10
9  #  namelist problems remain.  The biggest seems to be the inability  #  It fixes the ' \' versus ' &' terminator ;
10  #  of current gfortran versions to support namelist syntax such as:  #  with older versions (v4.0): namelist problems with syntax such as:
 #  
11  #     fields(1,1) = 'UVELSLT ','VVELSLT ','WVELSLT ',  #     fields(1,1) = 'UVELSLT ','VVELSLT ','WVELSLT ',
12  #  #      which results in run-time errors.)
 #  which results in run-time errors.  
13    
14    
15  FC=gfortran  FC=gfortran
# Line 36  if test "x$IEEE" = x ; then Line 34  if test "x$IEEE" = x ; then
34      FOPTIM='-O3 -funroll-loops'      FOPTIM='-O3 -funroll-loops'
35  else  else
36      #  Try to follow IEEE-754      #  Try to follow IEEE-754
37        # these may also be useful, but require specific gfortran versions:
38        # -Wnonstd-intrinsics  for gfortran <= 4.3
39        # -Wintrinsics-std     for gfortran >= 4.4
40        # -Wno-tabs            for gfortran >= 4.3
41        FFLAGS="$FFLAGS -Waliasing -Wampersand -Wsurprising -Wline-truncation"
42    #   to get plenty of warnings :
43    #   FFLAGS="$FFLAGS -Wconversion -Wimplicit-interface -Wunused-labels"
44      FOPTIM='-O0'      FOPTIM='-O0'
45    #   for automatic testing with testreport (but no relation with IEEE arithmetic):
46        FOPTIM="$FOPTIM -g -ffpe-trap=invalid,zero,overflow -fbounds-check"
47  fi  fi
48  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
49  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.22