/[MITgcm]/MITgcm/tools/build_options/linux_ia32_open64.trapuv
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_ia32_open64.trapuv

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

revision 1.1 by jmc, Fri Dec 14 03:01:41 2007 UTC revision 1.2 by jmc, Fri Dec 28 21:20:53 2007 UTC
# Line 6  Line 6 
6  # Build options for Fedore Core 4 i686 Pentium4  # Build options for Fedore Core 4 i686 Pentium4
7  # tested on ACES, (Linux a54-1727-072 2.6.11.7smp-perfctr-tty #5 SMP Fri Apr 22 15:07:50 EDT 2005 i686 i686 i386 GNU/Linux) system 20071213  # tested on ACES, (Linux a54-1727-072 2.6.11.7smp-perfctr-tty #5 SMP Fri Apr 22 15:07:50 EDT 2005 i686 i686 i386 GNU/Linux) system 20071213
8  #  #
9    #  Please note the appropriate module command:
10    #    module add open64
11    #
12    #  Set environment variable 'GSL_IEEE_MODE' if using "-gsl" option:
13    #   sh,bash:
14    #    export GSL_IEEE_MODE=double-precision,mask-underflow,mask-denormalized
15    #  csh/tcsh:
16    #    setenv GSL_IEEE_MODE double-precision,mask-underflow,mask-denormalized
17    
18  CC=opencc  CC=opencc
19  FC=openf90  FC=openf90
# Line 32  if test "x$IEEE" = x ; then Line 40  if test "x$IEEE" = x ; then
40      FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations'      FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations'
41  else  else
42      # full checking options:      # full checking options:
43      NOOPTFILES=$NOOPTFILES' mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F'      NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F'
44      FFLAGS='-m32 -fPIC -ffortran-bounds-check -trapuv -g'      FFLAGS='-m32 -fPIC -ffortran-bounds-check -trapuv -g'
45      #  Try to follow IEEE-754      #  Try to follow IEEE-754
46      FOPTIM='-O0 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math'      FOPTIM='-O0 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math'
# Line 43  F90OPTIM=$FOPTIM Line 51  F90OPTIM=$FOPTIM
51  CFLAGS='-O2 -m32 -fPIC'  CFLAGS='-O2 -m32 -fPIC'
52  GSLLIB='-lgsl -lgslcblas'  GSLLIB='-lgsl -lgslcblas'
53    
54  if [ "x$NETCDF_ROOT" != x ] ; then  LIBS='-L/usr/local/pkg/netcdf/netcdf-3.5.1/g77/lib '
55      INCLUDEDIR="${NETCDF_ROOT}/include"  INCLUDES='-I/usr/local/pkg/netcdf/netcdf-3.5.1/g77/include '
     INCLUDES="-I${NETCDF_ROOT}/include"  
     LIBDIR="${NETCDF_ROOT}/lib"  
     LIBS="-L${NETCDF_ROOT}/lib"  
 elif [ "x$NETCDF_HOME" != x ]; then  
     INCLUDEDIR="${NETCDF_HOME}/include"  
     INCLUDES="-I${NETCDF_HOME}/include"  
     LIBDIR="${NETCDF_HOME}/lib"  
     LIBS="-L${NETCDF_HOME}/lib"  
 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then  
     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`  
     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`  
     INCLUDEDIR="${NETCDF_INC}"  
     INCLUDES="-I${NETCDF_INC}"  
     LIBDIR="${NETCDF_LIB}"  
     LIBS="-L${NETCDF_LIB}"  
 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then  
     INCLUDEDIR="${NETCDF_INCDIR}"  
     INCLUDES="-I${NETCDF_INCDIR}"  
     LIBDIR="${NETCDF_LIBDIR}"  
     LIBS="-L${NETCDF_LIBDIR}"  
 elif test -d /usr/include/netcdf-3 ; then  
     INCLUDES='-I/usr/include/netcdf-3'  
     LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'  
 elif test -d /usr/include/netcdf ; then  
     INCLUDES='-I/usr/include/netcdf'  
 elif test -d /usr/local/netcdf ; then  
     INCLUDES='-I/usr/local/netcdf/include'  
     LIBS='-L/usr/local/netcdf/lib'  
 elif test -d /usr/local/include/netcdf.inc ; then  
     INCLUDES='-I/usr/local/include'  
     LIBS='-L/usr/local/lib'  
 fi  
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22