Warning, /tools/build_options/linux_ia32_pathf90 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
a55812cda4 Cons*0001 #!/bin/bash
0002 #
0003 #
26efd6645a Jean*0004 #== Warning ==> comments below have been copied from optfile linux_amd64_pathf90
0005 # and do not strickly apply to this file <==
a55812cda4 Cons*0006 # Build options for Fedore Core 3 x86-64 Opteron
0007 # tested on (Linux batsi 2.6.10-1.766_FC3smp #1 SMP Wed Feb 9 23:17:48 EST 2005 x86_64 x86_64 x86_64 GNU/Linux) system 20051802
0008 #
26efd6645a Jean*0009 # Multithreaded tests require
0010 # export PSC_OMP_STACK_SIZE=400m
0011 # export OMP_NUM_THREADS=2
a55812cda4 Cons*0012
0013 CC=pathcc
0014 FC=pathf90
26efd6645a Jean*0015 LINK=pathf90
0016
a55812cda4 Cons*0017 DEFINES='-DWORDLENGTH=4'
0018 CPP='cpp -traditional -P'
26efd6645a Jean*0019 #MAKEDEPEND=/usr/X11R6/bin/makedepend
0020 OMPFLAG='-openmp'
0021 #OMPFLAG='-openmp -OPT:early_mp=ON'
0022
0023 NOOPTFLAGS='-O0 -g'
a55812cda4 Cons*0024 NOOPTFILES=''
0025
26efd6645a Jean*0026 FFLAGS="$FFLAGS -m32 -convert big_endian"
a55812cda4 Cons*0027 if test "x$DEVEL" != x ; then
26efd6645a Jean*0028 FFLAGS="$FFLAGS -ffortran-bounds-check -trapuv -g"
a55812cda4 Cons*0029 fi
0030
26efd6645a Jean*0031 if test "x$IEEE" = x ; then #- with optimisation:
a55812cda4 Cons*0032 FOPTIM='-Ofast -LNO:fusion=2 -funsafe-math-optimizations'
26efd6645a Jean*0033 else #- no optimisation + IEEE :
0034 FOPTIM='-O0 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math'
a55812cda4 Cons*0035 fi
0036
0037 F90FLAGS=$FFLAGS
0038 F90OPTIM=$FOPTIM
26efd6645a Jean*0039 CFLAGS='-O0 -m32'
a55812cda4 Cons*0040
0041 if [ "x$NETCDF_ROOT" != x ] ; then
0042 INCLUDEDIR="${NETCDF_ROOT}/include"
0043 INCLUDES="-I${NETCDF_ROOT}/include"
0044 LIBDIR="${NETCDF_ROOT}/lib"
0045 LIBS="-L${NETCDF_ROOT}/lib"
0046 elif [ "x$NETCDF_HOME" != x ]; then
0047 INCLUDEDIR="${NETCDF_HOME}/include"
0048 INCLUDES="-I${NETCDF_HOME}/include"
0049 LIBDIR="${NETCDF_HOME}/lib"
0050 LIBS="-L${NETCDF_HOME}/lib"
0051 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
0052 NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
0053 NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
0054 INCLUDEDIR="${NETCDF_INC}"
0055 INCLUDES="-I${NETCDF_INC}"
0056 LIBDIR="${NETCDF_LIB}"
0057 LIBS="-L${NETCDF_LIB}"
0058 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
0059 INCLUDEDIR="${NETCDF_INCDIR}"
0060 INCLUDES="-I${NETCDF_INCDIR}"
0061 LIBDIR="${NETCDF_LIBDIR}"
0062 LIBS="-L${NETCDF_LIBDIR}"
0063 elif test -d /usr/include/netcdf-3 ; then
0064 INCLUDES='-I/usr/include/netcdf-3'
0065 LIBS='-L/usr/lib/netcdf-3 -L/usr/lib64/netcdf-3'
0066 elif test -d /usr/include/netcdf ; then
0067 INCLUDES='-I/usr/include/netcdf'
0068 elif test -d /usr/local/netcdf ; then
0069 INCLUDES='-I/usr/local/netcdf/include'
0070 LIBS='-L/usr/local/netcdf/lib'
0071 elif test -d /usr/local/include/netcdf.inc ; then
0072 INCLUDES='-I/usr/local/include'
0073 LIBS='-L/usr/local/lib64'
0074 fi
0075