Warning, /tools/build_options/unsupported/linux_ia32_open64.trapuv is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
6f1930f4d9 Jean*0001 #!/bin/bash
0002 #
0003 #
0004 # Build options for Fedore Core 4 i686 Pentium4
0005 # 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
0006 #
b183d4d9c1 Jean*0007 # Please note the appropriate module command:
0008 # module add open64
0009 #
0010 # Set environment variable 'GSL_IEEE_MODE' if using "-gsl" option:
0011 # sh,bash:
0012 # export GSL_IEEE_MODE=double-precision,mask-underflow,mask-denormalized
0013 # csh/tcsh:
0014 # setenv GSL_IEEE_MODE double-precision,mask-underflow,mask-denormalized
6f1930f4d9 Jean*0015
0016 CC=opencc
0017 FC=openf90
0018 LD=openf90
0019 # due to Pb in version 4.0 of the compiler with option "-byteswapio" (or "-convert big_endian")
0020 # use the MITgcm local version of bytes swapping:
0021 DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4'
0022 #DEFINES='-DWORDLENGTH=4'
0023 CPP='cpp -traditional -P'
0024 MAKEDEPEND=/usr/X11R6/bin/makedepend
4ba68f3245 Jean*0025 GET_FC_VERSION="--version"
0026
0027 NOOPTFLAGS='-O0 -g'
6f1930f4d9 Jean*0028 NOOPTFILES='ini_vertical_grid.F'
0029
0030 if test "x$DEVEL" != x ; then
0031 FFLAGS='-m32 -fPIC -ffortran-bounds-check -trapuv -g'
0032 # FFLAGS='-m32 -convert big_endian -fPIC -ffortran-bounds-check -trapuv -g'
0033 else
0034 FFLAGS='-m32 -fPIC'
0035 # FFLAGS='-m32 -convert big_endian -fPIC'
0036 fi
0037
0038 if test "x$IEEE" = x ; then
0039 # No need for IEEE-754
f3aba5400c Jean*0040 FOPTIM='-O2 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations'
6f1930f4d9 Jean*0041 else
0042 # full checking options:
b183d4d9c1 Jean*0043 NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F'
6f1930f4d9 Jean*0044 FFLAGS='-m32 -fPIC -ffortran-bounds-check -trapuv -g'
0045 # Try to follow IEEE-754
0046 FOPTIM='-O0 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math'
0047 fi
0048
0049 F90FLAGS=$FFLAGS
0050 F90OPTIM=$FOPTIM
0051 CFLAGS='-O2 -m32 -fPIC'
0052 GSLLIB='-lgsl -lgslcblas'
0053
b183d4d9c1 Jean*0054 LIBS='-L/usr/local/pkg/netcdf/netcdf-3.5.1/g77/lib '
0055 INCLUDES='-I/usr/local/pkg/netcdf/netcdf-3.5.1/g77/include '