Back to home page

MITgcm

 
 

    


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