Warning, /tools/build_options/linux_ia64_ifort9.0+mpt_altix3700_stommel 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
8503d14ce4 Patr*0001 #!/bin/bash
0002 #
0003 CC=icc
0004 FC=ifort
0005 LD=ifort
bbc46cc2fb Jean*0006
8503d14ce4 Patr*0007 DEFINES='-DWORDLENGTH=4'
0008 CPP='cpp -traditional -P'
5f0724dc03 Patr*0009 #MAKEDEPEND=/usr/X11R6/bin/makedepend
bbc46cc2fb Jean*0010 EXTENDED_SRC_FLAG='-132'
0011
8503d14ce4 Patr*0012 NOOPTFLAGS='-O0 -g'
0013 NOOPTFILES=''
0014
0015 if test "x$DEVEL" != x ; then
bbc46cc2fb Jean*0016 FFLAGS="$FFLAGS -w95 -u -warn all -WB -convert big_endian -assume byterecl -ftrapuv -g -traceback -gen-interfaces"
8503d14ce4 Patr*0017 else
bbc46cc2fb Jean*0018 FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl"
8503d14ce4 Patr*0019 fi
bbc46cc2fb Jean*0020 #- might want to use '-r8' for fizhi pkg:
0021 #FFLAGS="$FFLAGS -r8"
8503d14ce4 Patr*0022
0023 if test "x$IEEE" = x ; then
0024 # No need for IEEE-754
0025 FFLAGS="-assume buffered_io $FFLAGS"
0026 FOPTIM='-O3 -align -mp'
0027 NOOPTFLAGS='-O1'
0028 NOOPTFILES='phy_radiat.F fizhi_lsm.F fizhi_clockstuff.F'
0029 else
0030 # Try to follow IEEE-754
0031 FFLAGS="$FFLAGS"
0032 FOPTIM='-O0 -noalign -mp' # '-O3 -align' also seems to work fine
0033 fi
0034
0035 F90FLAGS=$FFLAGS
0036 F90OPTIM=$FOPTIM
0037 CFLAGS='-O3'
0038 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
0039
0040 if [ "x$NETCDF_ROOT" != x ] ; then
0041 INCLUDEDIR="${NETCDF_ROOT}/include"
0042 INCLUDES="-I${NETCDF_ROOT}/include"
0043 LIBDIR="${NETCDF_ROOT}/lib"
0044 LIBS="-L${NETCDF_ROOT}/lib"
0045 elif [ "x$NETCDF_HOME" != x ]; then
0046 INCLUDEDIR="${NETCDF_HOME}/include"
0047 INCLUDES="-I${NETCDF_HOME}/include"
0048 LIBDIR="${NETCDF_HOME}/lib"
0049 LIBS="-L${NETCDF_HOME}/lib"
0050 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
0051 NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
0052 NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
0053 INCLUDEDIR="${NETCDF_INC}"
0054 INCLUDES="-I${NETCDF_INC}"
0055 LIBDIR="${NETCDF_LIB}"
0056 LIBS="-L${NETCDF_LIB}"
0057 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
0058 INCLUDEDIR="${NETCDF_INCDIR}"
0059 INCLUDES="-I${NETCDF_INCDIR}"
0060 LIBDIR="${NETCDF_LIBDIR}"
0061 LIBS="-L${NETCDF_LIBDIR}"
0062 elif test -d /usr/include/netcdf-3 ; then
0063 INCLUDES='-I/usr/include/netcdf-3'
0064 LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
0065 elif test -d /usr/include/netcdf ; then
0066 INCLUDES='-I/usr/include/netcdf'
0067 elif test -d /usr/local/netcdf ; then
0068 INCLUDES='-I/usr/local/netcdf/include'
0069 LIBS='-L/usr/local/netcdf/lib'
0070 elif test -d /usr/local/include/netcdf.inc ; then
0071 INCLUDES='-I/usr/local/include'
0072 LIBS='-L/usr/local/lib'
0073 fi
0074
0075 if test ! "x$MPI" = x ; then
0076 LIBS="$LIBS -lmpi"
15978f0412 Jean*0077 #MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h'
7b8f62ab41 Jean*0078 DEFINES="-DALLOW_USE_MPI $DEFINES"
8503d14ce4 Patr*0079 fi