/[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.3 by ce107, Mon Aug 20 20:31:00 2007 UTC revision 1.5 by jmc, Sun Mar 29 23:20:28 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 20  CC=gcc Line 18  CC=gcc
18  DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'  DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'
19  CPP='cpp  -traditional -P'  CPP='cpp  -traditional -P'
20  NOOPTFLAGS='-O0'  NOOPTFLAGS='-O0'
21    EXTENDED_SRC_FLAG='-ffixed-line-length-132'
22    
23  if test "x$DEVEL" != x ; then  if test "x$DEVEL" != x ; then
24      FFLAGS='-g -Wall -W -ffpe-trap=invalid,zero,overflow -fbounds-check'      FFLAGS='-g -Wall -W -ffpe-trap=invalid,zero,overflow -fbounds-check'
# Line 35  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        FFLAGS="$FFLAGS -Waliasing -Wampersand -Wnonstd-intrinsics -Wsurprising -Wline-truncation"
38    #   to get plenty of warnings :
39    #   FFLAGS="$FFLAGS -Wconversion -Wimplicit-interface -Wunused-labels"
40      FOPTIM='-O0'      FOPTIM='-O0'
41    #   for automatic testing with testreport (but no relation with IEEE arithmetic):
42        FOPTIM="$FOPTIM -g -ffpe-trap=invalid,zero,overflow -fbounds-check"
43  fi  fi
44  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
45  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.22