** Warning **
Issuing rollback() due to DESTROY without explicit disconnect() of DBD::mysql::db handle dbname=MITgcm at /usr/local/share/lxr/lib/LXR/Common.pm line 1224.
Last-Modified: Fri, 28 Nov 2024 06:11:57 GMT
Content-Type: text/html; charset=utf-8
MITgcm/MITgcm/tools/build_options/linux_amd64_g95
Warning, /tools/build_options/linux_amd64_g95 is written in an unsupported language. File is not indexed.
view on github raw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
a55812cda4 Cons* 0001 #!/bin/bash
0002 #
0003 #
0004
0005 FC=g95
0006 F90C=g95
0007 CC=gcc
0008 DEFINES='-DWORDLENGTH=4'
0009 CPP='cpp -traditional -P'
0010 NOOPTFLAGS='-O0'
0011
0012 if test "x$DEVEL" != x ; then
0013 FFLAGS='-g -Wall -Wextra -fbounds-check -ftrace=full -finteger=-99999 -flogical=false -freal=nan'
0014 else
80497dc312 Cons* 0015 FFLAGS='-Wunused'
a55812cda4 Cons* 0016 fi
0017
0018 # "warning: -Wuninitialized is not supported without -O"
0019 FFLAGS="$FFLAGS -fendian=big -fimplicit-none"
0020
0021 if test "x$IEEE" = x ; then
0022 # No need for IEEE-754
80497dc312 Cons* 0023 FOPTIM='-O3 -funroll-loops'
a55812cda4 Cons* 0024 else
0025 # Try to follow IEEE-754
0026 FOPTIM='-O0'
0027 fi
0028 F90FLAGS=$FFLAGS
0029 F90OPTIM=$FOPTIM
0030 CFLAGS=$FOPTIM
0031
0032 if [ "x$NETCDF_ROOT" != x ] ; then
0033 INCLUDEDIR="${NETCDF_ROOT}/include"
0034 INCLUDES="-I${NETCDF_ROOT}/include"
0035 LIBDIR="${NETCDF_ROOT}/lib"
0036 LIBS="-L${NETCDF_ROOT}/lib"
0037 elif [ "x$NETCDF_HOME" != x ]; then
0038 INCLUDEDIR="${NETCDF_HOME}/include"
0039 INCLUDES="-I${NETCDF_HOME}/include"
0040 LIBDIR="${NETCDF_HOME}/lib"
0041 LIBS="-L${NETCDF_HOME}/lib"
0042 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
0043 NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
0044 NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
0045 INCLUDEDIR="${NETCDF_INC}"
0046 INCLUDES="-I${NETCDF_INC}"
0047 LIBDIR="${NETCDF_LIB}"
0048 LIBS="-L${NETCDF_LIB}"
0049 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
0050 INCLUDEDIR="${NETCDF_INCDIR}"
0051 INCLUDES="-I${NETCDF_INCDIR}"
0052 LIBDIR="${NETCDF_LIBDIR}"
0053 LIBS="-L${NETCDF_LIBDIR}"
0054 elif test -d /usr/include/netcdf-3 ; then
0055 INCLUDES='-I/usr/include/netcdf-3'
0056 LIBS='-L/usr/lib/netcdf-3 -L/usr/lib64/netcdf-3'
0057 elif test -d /usr/include/netcdf ; then
0058 INCLUDES='-I/usr/include/netcdf'
0059 elif test -d /usr/local/netcdf ; then
0060 INCLUDES='-I/usr/local/netcdf/include'
0061 LIBS='-L/usr/local/netcdf/lib'
0062 elif test -d /usr/local/include/netcdf.inc ; then
0063 INCLUDES='-I/usr/local/include'
0064 LIBS='-L/usr/local/lib64'
0065 fi