/[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.8 by yunx, Wed Mar 24 21:36:23 2010 UTC revision 1.10 by jmc, Thu Oct 14 23:54:58 2010 UTC
# Line 13  Line 13 
13    
14  # OpenMP : Tested on dickens with gcc-gfortran v4.3.2 as shipped with FC 10  # OpenMP : Tested on dickens with gcc-gfortran v4.3.2 as shipped with FC 10
15  #-------  #-------
16  # run with OpenMP: needs to set environment var. OMP_NUM_THREADS  # run with OpenMP: needs to set environment var. OMP_NUM_THREADS
17  #    and generally, needs to increase the thread stack-size:  #    and generally, needs to increase the thread stack-size:
18  #   -  sh,bash:  #   -  sh,bash:
19  #     > export OMP_NUM_THREADS=2  #     > export OMP_NUM_THREADS=2
# Line 40  fi Line 40  fi
40    
41  # Requires gfortran from 2006 onwards for -fconvert=big-endian  # Requires gfortran from 2006 onwards for -fconvert=big-endian
42  FFLAGS="$FFLAGS -fconvert=big-endian -fimplicit-none"  FFLAGS="$FFLAGS -fconvert=big-endian -fimplicit-none"
43    # for big objects:
44    FFLAGS="$FFLAGS -fPIC"
45    
46  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
47      #  No need for IEEE-754      #  No need for IEEE-754
# Line 49  else Line 51  else
51      # these may also be useful, but require specific gfortran versions:      # these may also be useful, but require specific gfortran versions:
52      # -Wnonstd-intrinsics  for gfortran <= 4.3      # -Wnonstd-intrinsics  for gfortran <= 4.3
53      # -Wintrinsics-std     for gfortran >= 4.4      # -Wintrinsics-std     for gfortran >= 4.4
54      # -Wno-tabs            for gfortran >= 4.3      # -Wno-tabs            for gfortran >= 4.3
55      FFLAGS="$FFLAGS -Waliasing -Wampersand -Wsurprising -Wline-truncation"      FFLAGS="$FFLAGS -Waliasing -Wampersand -Wsurprising -Wline-truncation"
56  #   to get plenty of warnings :  #   to get plenty of warnings :
57  #   FFLAGS="$FFLAGS -Wconversion -Wimplicit-interface -Wunused-labels"  #   FFLAGS="$FFLAGS -Wconversion -Wimplicit-interface -Wunused-labels"
# Line 59  else Line 61  else
61  fi  fi
62  F90FLAGS=$FFLAGS  F90FLAGS=$FFLAGS
63  F90OPTIM=$FOPTIM  F90OPTIM=$FOPTIM
64  CFLAGS=$FOPTIM  CFLAGS='-O0 -fPIC'
65    
66  if [ "x$NETCDF_ROOT" != x ] ; then  if [ "x$NETCDF_ROOT" != x ] ; then
67      INCLUDEDIR="${NETCDF_ROOT}/include"      INCLUDEDIR="${NETCDF_ROOT}/include"
# Line 83  elif [ "x$NETCDF_INCDIR" != x -a "x$NETC Line 85  elif [ "x$NETCDF_INCDIR" != x -a "x$NETC
85      INCLUDES="-I${NETCDF_INCDIR}"      INCLUDES="-I${NETCDF_INCDIR}"
86      LIBDIR="${NETCDF_LIBDIR}"      LIBDIR="${NETCDF_LIBDIR}"
87      LIBS="-L${NETCDF_LIBDIR}"      LIBS="-L${NETCDF_LIBDIR}"
 elif test -d /sopt/netcdf/netcdf3-gcc-serial; then  
     INCLUDES='-I/sopt/netcdf/netcdf3-gcc-serial/include'  
     LIBS='-L/sopt/netcdf/netcdf3-gcc-serial/lib'  
88  elif test -d /usr/include/netcdf-3 ; then  elif test -d /usr/include/netcdf-3 ; then
89      INCLUDES='-I/usr/include/netcdf-3'      INCLUDES='-I/usr/include/netcdf-3'
90      LIBS='-L/usr/lib/netcdf-3 -L/usr/lib64/netcdf-3'      LIBS='-L/usr/lib/netcdf-3 -L/usr/lib64/netcdf-3'

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.22