Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/unsupported/linux_ia64_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 #
                0008 
                0009 CC=opencc
                0010 FC=openf90
                0011 F90C=openf90
                0012 F90FIXEDFORMAT='-fixedform -x f95'
                0013 LD=openf90
                0014 DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING'
                0015 CPP='cpp -traditional -P'
                0016 MAKEDEPEND=/usr/X11R6/bin/makedepend
                0017 NOOPTFLAGS='-O0 -g -openmp'
                0018 NOOPTFILES=''
                0019 
                0020 if test "x$DEVEL" != x ; then
                0021     FFLAGS='-convert big_endian -openmp -ffortran-bounds-check -trapuv -g'
                0022 else
                0023     FFLAGS='-convert big_endian -openmp'
                0024 fi
                0025 
                0026 if test "x$IEEE" = x ; then
                0027     #  No need for IEEE-754
                0028     FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3 -OPT:early_mp=ON' # -funsafe-math-optimizations'
                0029 else
                0030     #  Try to follow IEEE-754
                0031     FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math -OPT:early_mp=ON'
                0032 fi
                0033 
                0034 F90FLAGS=$FFLAGS
                0035 F90OPTIM=$FOPTIM
                0036 CFLAGS='-O3 -openmp'
                0037 GSLLIB='-lgsl -lgslcblas'
                0038 
                0039 if [ "x$NETCDF_ROOT" != x ] ; then
                0040     INCLUDEDIR="${NETCDF_ROOT}/include"
                0041     INCLUDES="-I${NETCDF_ROOT}/include"
                0042     LIBDIR="${NETCDF_ROOT}/lib"
                0043     LIBS="-L${NETCDF_ROOT}/lib"
                0044 elif [ "x$NETCDF_HOME" != x ]; then
                0045     INCLUDEDIR="${NETCDF_HOME}/include"
                0046     INCLUDES="-I${NETCDF_HOME}/include"
                0047     LIBDIR="${NETCDF_HOME}/lib"
                0048     LIBS="-L${NETCDF_HOME}/lib"
                0049 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
                0050     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
                0051     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
                0052     INCLUDEDIR="${NETCDF_INC}"
                0053     INCLUDES="-I${NETCDF_INC}"
                0054     LIBDIR="${NETCDF_LIB}"
                0055     LIBS="-L${NETCDF_LIB}"
                0056 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
                0057     INCLUDEDIR="${NETCDF_INCDIR}"
                0058     INCLUDES="-I${NETCDF_INCDIR}"
                0059     LIBDIR="${NETCDF_LIBDIR}"
                0060     LIBS="-L${NETCDF_LIBDIR}"
                0061 elif test -d /usr/include/netcdf-3 ; then
                0062     INCLUDES='-I/usr/include/netcdf-3'
                0063     LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
                0064 elif test -d /usr/include/netcdf ; then
                0065     INCLUDES='-I/usr/include/netcdf'
                0066 elif test -d /usr/local/netcdf ; then
                0067     INCLUDES='-I/usr/local/netcdf/include'
                0068     LIBS='-L/usr/local/netcdf/lib'
                0069 elif test -d /usr/local/include/netcdf.inc ; then
                0070     INCLUDES='-I/usr/local/include'
                0071     LIBS='-L/usr/local/lib'
                0072 fi
                0073