Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/unsupported/linux_ia32_ifort11+mpi_generic 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
1335f9f461 Jean*0001 #!/bin/bash
                0002 #
                0003 #
                0004 #  Constantinos Evangelinos
                0005 #
                0006 #  Build options for the intel 11 fortran compiler with a generic MPI
                0007 #
                0008 # DON'T FORGET to set environment variable MPI_INC_DIR to the include
                0009 # directory of your MPI implementation
                0010 
                0011 FC=${FC:=mpif77}
                0012 F90C=${F90C:=mpif90}
                0013 CC=${CC:=mpicc}
                0014 LINK="$F90C -shared-intel -no-ipo"
                0015 
                0016 DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'
                0017 CPP='cpp  -traditional -P'
a2b7e9952a Jean*0018 F90FIXEDFORMAT='-fixed -Tf'
1335f9f461 Jean*0019 EXTENDED_SRC_FLAG='-132'
                0020 
                0021 NOOPTFLAGS='-O0 -g'
                0022 NOOPTFILES=''
                0023 
                0024 INCLUDEDIRS=''
                0025 INCLUDES=''
                0026 LIBS=''
                0027 
                0028 if test "x$DEVEL" != x ; then
a2b7e9952a Jean*0029     FFLAGS="$FFLAGS -convert big_endian -assume byterecl -O0 -g -debug all -debug-parameters all -noalign -fp-stack-check -check all -fpe0 -traceback -ftrapuv -fp-model strict -warn all"
1335f9f461 Jean*0030 else
a2b7e9952a Jean*0031     FFLAGS="$FFLAGS -W0 -WB -convert big_endian -assume byterecl"
1335f9f461 Jean*0032 fi
a2b7e9952a Jean*0033 #- might want to use '-r8' for fizhi pkg:
                0034 #FFLAGS="$FFLAGS -r8"
1335f9f461 Jean*0035 
                0036 if test "x$GENERIC" != x ; then
                0037     PROCF=-mia32 -axSSE4.2,SSE4.1,SSSE3,SSE3,SSE2
                0038 else
                0039     PROCF=-xHost
                0040 fi
                0041 #  Note that the -mp switch is for ieee "maintain precision" and is
                0042 #  roughly equivalent to -ieee
                0043 if test "x$IEEE" = x ; then
                0044     FOPTIM="-O2 -align -ip -opt-streaming-stores auto $PROCF"
                0045 else
                0046     if test "x$DEVEL" != x ; then
                0047         FOPTIM="$PROCF"
                0048     else
                0049         FOPTIM="-O0 -fp-model source -noalign $PROCF"
                0050     fi
                0051 fi
                0052 F90FLAGS=$FFLAGS
                0053 F90OPTIM=$FOPTIM
                0054 CFLAGS="-O2 -ip $PROCF"
                0055 
                0056 if [ "x$NETCDF_ROOT" != x ] ; then
                0057     INCLUDEDIRS="${NETCDF_ROOT}/include"
                0058     INCLUDES="-I${NETCDF_ROOT}/include"
                0059     LIBS="-L${NETCDF_ROOT}/lib"
                0060 elif [ "x$NETCDF_HOME" != x ]; then
                0061     INCLUDEDIRS="${NETCDF_HOME}/include"
                0062     INCLUDES="-I${NETCDF_HOME}/include"
                0063     LIBS="-L${NETCDF_HOME}/lib"
                0064 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
                0065     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
                0066     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
                0067     INCLUDEDIRS="${NETCDF_INC}"
                0068     INCLUDES="-I${NETCDF_INC}"
                0069     LIBS="-L${NETCDF_LIB}"
                0070 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
                0071     INCLUDEDIRS="${NETCDF_INCDIR}"
                0072     INCLUDES="-I${NETCDF_INCDIR}"
                0073     LIBS="-L${NETCDF_LIBDIR}"
                0074 elif test -d /usr/include/netcdf-3 ; then
                0075     INCLUDEDIRS='/usr/include/netcdf-3'
                0076     INCLUDES='-I/usr/include/netcdf-3'
                0077     LIBS='-L/usr/lib/netcdf-3'
                0078 elif test -d /usr/local/pkg/netcdf ; then
                0079     INCLUDEDIRS='/usr/local/pkg/netcdf/include'
                0080     INCLUDES='-I/usr/local/pkg/netcdf/include'
                0081     LIBS='-L/usr/local/pkg/netcdf/lib'
                0082 elif test -d /usr/include/netcdf ; then
                0083     INCLUDEDIRS='/usr/include/netcdf'
                0084     INCLUDES='-I/usr/include/netcdf'
                0085 elif test -d /usr/local/netcdf ; then
                0086     INCLUDEDIRS='/usr/include/netcdf/include'
                0087     INCLUDES='-I/usr/local/netcdf/include'
                0088     LIBS='-L/usr/local/netcdf/lib'
                0089 elif test -f /usr/local/include/netcdf.inc ; then
                0090     INCLUDEDIRS='/usr/local/include'
                0091     INCLUDES='-I/usr/local/include'
                0092     LIBS='-L/usr/local/lib'
                0093 fi
                0094 
                0095 INCLUDES="$INCLUDES -I$MPI_INC_DIR"
                0096 INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
                0097 MPIINCLUDEDIR="$MPI_INC_DIR"
                0098 MPI_HEADER_FILES='mpif.h mpiof.h'
                0099 MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h'