Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/linux_ia64_open64 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
d2c76e8719 Cons*0001 #!/bin/bash
                0002 #
                0003 #
53e37e1d21 Jean*0004 #== Warning ==> comments below have been copied from optfile linux_amd64_open64
                0005 #               and do not strickly apply to this file <==
d2c76e8719 Cons*0006 # Build options for Fedore Core 4 x86-64 Opteron
                0007 # tested on (Linux batsi.mit.edu 2.6.14-1.1656_FC4smp #1 SMP Thu Jan 5 22:26:33 EST 2006 x86_64 x86_64 x86_64 GNU/Linux) system 20071121
                0008 #
53e37e1d21 Jean*0009 # Multithreaded tests require
                0010 #       export OMP_SLAVE_STACK_SIZE=400m
                0011 #       export OMP_NUM_THREADS=2
d2c76e8719 Cons*0012 
                0013 CC=opencc
                0014 FC=openf90
60a0298c61 Jean*0015 F90C=openf90
53e37e1d21 Jean*0016 LINK=openf90
                0017 
d2c76e8719 Cons*0018 DEFINES='-DWORDLENGTH=4'
                0019 CPP='cpp -traditional -P'
53e37e1d21 Jean*0020 #MAKEDEPEND=/usr/X11R6/bin/makedepend
                0021 EXTENDED_SRC_FLAG='-extend-source'
                0022 F90FIXEDFORMAT='-fixedform -x f95'
                0023 GET_FC_VERSION="--version"
                0024 OMPFLAG='-openmp'
                0025 #OMPFLAG='-openmp -OPT:early_mp=ON'
                0026 
d2c76e8719 Cons*0027 NOOPTFLAGS='-O0 -g'
                0028 NOOPTFILES=''
                0029 
53e37e1d21 Jean*0030 FFLAGS="$FFLAGS -convert big_endian"
                0031 
d2c76e8719 Cons*0032 if test "x$DEVEL" != x ; then
53e37e1d21 Jean*0033     FFLAGS="$FFLAGS -ffortran-bounds-check -trapuv -g"
d2c76e8719 Cons*0034 fi
                0035 
53e37e1d21 Jean*0036 if test "x$IEEE" = x ; then     #- with optimisation:
d2c76e8719 Cons*0037     FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations'
53e37e1d21 Jean*0038 else                            #- no optimisation + IEEE :
                0039     FOPTIM='-O0 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math'
d2c76e8719 Cons*0040 fi
                0041 
                0042 F90FLAGS=$FFLAGS
                0043 F90OPTIM=$FOPTIM
53e37e1d21 Jean*0044 CFLAGS='-O0'
d2c76e8719 Cons*0045 GSLLIB='-lgsl -lgslcblas'
                0046 
                0047 if [ "x$NETCDF_ROOT" != x ] ; then
                0048     INCLUDEDIR="${NETCDF_ROOT}/include"
                0049     INCLUDES="-I${NETCDF_ROOT}/include"
                0050     LIBDIR="${NETCDF_ROOT}/lib"
                0051     LIBS="-L${NETCDF_ROOT}/lib"
                0052 elif [ "x$NETCDF_HOME" != x ]; then
                0053     INCLUDEDIR="${NETCDF_HOME}/include"
                0054     INCLUDES="-I${NETCDF_HOME}/include"
                0055     LIBDIR="${NETCDF_HOME}/lib"
                0056     LIBS="-L${NETCDF_HOME}/lib"
                0057 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
                0058     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
                0059     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
                0060     INCLUDEDIR="${NETCDF_INC}"
                0061     INCLUDES="-I${NETCDF_INC}"
                0062     LIBDIR="${NETCDF_LIB}"
                0063     LIBS="-L${NETCDF_LIB}"
                0064 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
                0065     INCLUDEDIR="${NETCDF_INCDIR}"
                0066     INCLUDES="-I${NETCDF_INCDIR}"
                0067     LIBDIR="${NETCDF_LIBDIR}"
                0068     LIBS="-L${NETCDF_LIBDIR}"
                0069 elif test -d /usr/include/netcdf-3 ; then
                0070     INCLUDES='-I/usr/include/netcdf-3'
                0071     LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
                0072 elif test -d /usr/include/netcdf ; then
                0073     INCLUDES='-I/usr/include/netcdf'
                0074 elif test -d /usr/local/netcdf ; then
                0075     INCLUDES='-I/usr/local/netcdf/include'
                0076     LIBS='-L/usr/local/netcdf/lib'
                0077 elif test -d /usr/local/include/netcdf.inc ; then
                0078     INCLUDES='-I/usr/local/include'
                0079     LIBS='-L/usr/local/lib'
                0080 fi
                0081