Warning, /tools/build_options/unsupported/linux_ia32_open64+mth 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
6c257dab34 Cons*0001 #!/bin/bash
0002 #
0003 #
0004 # Multithreaded tests require
0005 # export OMP_SLAVE_STACK_SIZE=400m
0006 # export OMP_NUM_THREADS=2
0007 #
f3aba5400c Jean*0008 # Note: use just -O2 optimisation to avoid some wierd problems with -O3
0009 # on aces (open64/4.1 & 4.2) (ideal_2D_ocean)
6c257dab34 Cons*0010
0011 CC=opencc
0012 FC=openf90
0013 F90C=openf90
0014 F90FIXEDFORMAT='-fixedform -x f95'
0015 LD=openf90
0016 DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING'
0017 CPP='cpp -traditional -P'
121b1fbb32 Cons*0018 EXTENDED_SRC_FLAG='-extend-source'
6c257dab34 Cons*0019 MAKEDEPEND=/usr/X11R6/bin/makedepend
121b1fbb32 Cons*0020 NOOPTFLAGS='-O0 -m32 -g -openmp'
f3aba5400c Jean*0021 # to avoid a bug in ealier version (4.1) of compiler with openMP:
0022 NOOPTFILES='mon_set_iounit.F mon_init.F'
6c257dab34 Cons*0023
0024 if test "x$DEVEL" != x ; then
0025 FFLAGS='-m32 -convert big_endian -openmp -ffortran-bounds-check -trapuv -g'
0026 else
0027 FFLAGS='-m32 -convert big_endian -openmp'
0028 fi
0029
0030 if test "x$IEEE" = x ; then
0031 # No need for IEEE-754
f3aba5400c Jean*0032 FOPTIM='-O2 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3 -OPT:early_mp=ON' # -funsafe-math-optimizations'
6c257dab34 Cons*0033 else
0034 # Try to follow IEEE-754
f3aba5400c Jean*0035 FOPTIM='-O2 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math -OPT:early_mp=ON'
6c257dab34 Cons*0036 fi
0037
0038 F90FLAGS=$FFLAGS
0039 F90OPTIM=$FOPTIM
f3aba5400c Jean*0040 CFLAGS='-O2 -m32 -openmp'
6c257dab34 Cons*0041 GSLLIB='-lgsl -lgslcblas'
0042
0043 if [ "x$NETCDF_ROOT" != x ] ; then
0044 INCLUDEDIR="${NETCDF_ROOT}/include"
0045 INCLUDES="-I${NETCDF_ROOT}/include"
0046 LIBDIR="${NETCDF_ROOT}/lib"
0047 LIBS="-L${NETCDF_ROOT}/lib"
0048 elif [ "x$NETCDF_HOME" != x ]; then
0049 INCLUDEDIR="${NETCDF_HOME}/include"
0050 INCLUDES="-I${NETCDF_HOME}/include"
0051 LIBDIR="${NETCDF_HOME}/lib"
0052 LIBS="-L${NETCDF_HOME}/lib"
0053 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
0054 NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
0055 NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
0056 INCLUDEDIR="${NETCDF_INC}"
0057 INCLUDES="-I${NETCDF_INC}"
0058 LIBDIR="${NETCDF_LIB}"
0059 LIBS="-L${NETCDF_LIB}"
0060 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
0061 INCLUDEDIR="${NETCDF_INCDIR}"
0062 INCLUDES="-I${NETCDF_INCDIR}"
0063 LIBDIR="${NETCDF_LIBDIR}"
0064 LIBS="-L${NETCDF_LIBDIR}"
0065 elif test -d /usr/include/netcdf-3 ; then
0066 INCLUDES='-I/usr/include/netcdf-3'
0067 LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
0068 elif test -d /usr/include/netcdf ; then
0069 INCLUDES='-I/usr/include/netcdf'
0070 elif test -d /usr/local/netcdf ; then
0071 INCLUDES='-I/usr/local/netcdf/include'
0072 LIBS='-L/usr/local/netcdf/lib'
0073 elif test -d /usr/local/include/netcdf.inc ; then
0074 INCLUDES='-I/usr/local/include'
0075 LIBS='-L/usr/local/lib'
0076 fi
0077
d1fd20e58f Cons*0078 if [ "x$LIBS" != x ] ; then
0079 LIBS="$LIBS -lstdc++"
e9c113e214 Cons*0080 else
d1fd20e58f Cons*0081 LIBS="-lstdc++"
0082 fi