Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/unsupported/linux_amd64_sunf90+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
a899b885c1 Cons*0001 #!/bin/bash
                0002 #
                0003 FC=f77
                0004 F90C=f90
                0005 CC=cc
8cfe52d849 Cons*0006 LINK=${F90C}
                0007 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
a899b885c1 Cons*0008 DEFINES='-DWORDLENGTH=4 -DUSE_OMP_THREADING'
                0009 CPP='cpp  -traditional -P'
                0010 NOOPTFLAGS='-O0 -g -m64 -Kpic -xfilebyteorder=big16:%all -u -r8const -xopenmp=noopt'
                0011 NOOPTFILES=''
8cfe52d849 Cons*0012 EXTENDED_SRC_FLAG='-e'
a899b885c1 Cons*0013 
                0014 if test "x$DEVEL" != x ; then
                0015     FFLAGS='-xfilebyteorder=big16:%all -u -r8const -g -xs -C -xcommonchk -xcheck=init_local -fpover -xopenmp=noopt'
                0016 else
                0017     FFLAGS='-xfilebyteorder=big16:%all -u -r8const -xopenmp'
                0018 fi
                0019 
                0020 if test "x$IEEE" = x ; then
                0021     #  No need for IEEE-754
                0022     FOPTIM='-fast -m64 -xvector=simd -xpad=local -Kpic'
8cfe52d849 Cons*0023     LIBS="$LIBS -lmopt"
a899b885c1 Cons*0024 else
                0025     #  Try to follow IEEE-754
                0026 #    FOPTIM='-O0 -m64 -Kpic'
                0027     FOPTIM='-fast -m64 -xpad=local -fsimple=1 -Kpic'
                0028 fi
                0029 F90FLAGS=$FFLAGS
                0030 F90OPTIM=$FOPTIM
8cfe52d849 Cons*0031 CFLAGS='-O3 -m64 -Kpic -xopenmp'
a899b885c1 Cons*0032 
                0033 if [ "x$NETCDF_ROOT" != x ] ; then
                0034     INCLUDEDIR="${NETCDF_ROOT}/include"
                0035     INCLUDES="-I${NETCDF_ROOT}/include"
                0036     LIBDIR="${NETCDF_ROOT}/lib"
                0037     LIBS="-L${NETCDF_ROOT}/lib"
                0038 elif [ "x$NETCDF_HOME" != x ]; then
                0039     INCLUDEDIR="${NETCDF_HOME}/include"
                0040     INCLUDES="-I${NETCDF_HOME}/include"
                0041     LIBDIR="${NETCDF_HOME}/lib"
                0042     LIBS="-L${NETCDF_HOME}/lib"
                0043 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
                0044     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
                0045     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
                0046     INCLUDEDIR="${NETCDF_INC}"
                0047     INCLUDES="-I${NETCDF_INC}"
                0048     LIBDIR="${NETCDF_LIB}"
                0049     LIBS="-L${NETCDF_LIB}"
                0050 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
                0051     INCLUDEDIR="${NETCDF_INCDIR}"
                0052     INCLUDES="-I${NETCDF_INCDIR}"
                0053     LIBDIR="${NETCDF_LIBDIR}"
                0054     LIBS="-L${NETCDF_LIBDIR}"
                0055 elif test -d /usr/include/netcdf-3 ; then
                0056     INCLUDES='-I/usr/include/netcdf-3'
                0057     LIBS='-L/usr/lib/netcdf-3 -L/usr/lib64/netcdf-3'
                0058 elif test -d /usr/include/netcdf ; then
                0059     INCLUDES='-I/usr/include/netcdf'
                0060 elif test -d /usr/local/netcdf ; then
                0061     INCLUDES='-I/usr/local/netcdf/include'
                0062     LIBS='-L/usr/local/netcdf/lib'
                0063 elif test -d /usr/local/include/netcdf.inc ; then
                0064     INCLUDES='-I/usr/local/include'
8cfe52d849 Cons*0065     LIBS='-L/usr/local/lib64 -L/usr/local/lib'
a899b885c1 Cons*0066 fi
                0067