/[MITgcm]/MITgcm/tools/build_options/linux_amd64_open64
ViewVC logotype

Contents of /MITgcm/tools/build_options/linux_amd64_open64

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Nov 26 19:18:46 2007 UTC (16 years, 4 months ago) by ce107
Branch: MAIN
CVS Tags: checkpoint63a, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59k, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Initial build options for the Open64 compilers (http://www.open64.net/). Note
that they appear to offer a working -trapuv flag for debugging uninitialized
variable use. Open64 Fortran uses the f2c name mangling scheme (add an
underscore to all identifiers unless they already contain an underscore
anywhere in their name in which case one adds two underscores).

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pathf90,v 1.3 2007/11/14 15:32:10 jmc Exp $
4 # $Name: $
5 #
6 # Build options for Fedore Core 4 x86-64 Opteron
7 # tested on (Linux batsi.mit.edu 2.6.14-1.1656_FC4smp #1 SMP Thu Jan 5 22:26:33 EST 2006 x86_64 x86_64 x86_64 GNU/Linux) system 20071121
8 #
9
10 CC=opencc
11 FC=openf90
12 LD=openf90
13 DEFINES='-DWORDLENGTH=4'
14 CPP='cpp -traditional -P'
15 MAKEDEPEND=/usr/X11R6/bin/makedepend
16 NOOPTFLAGS='-O0 -m64 -g -fPIC'
17 NOOPTFILES=''
18
19 if test "x$DEVEL" != x ; then
20 FFLAGS='-m64 -convert big_endian -fPIC -ffortran-bounds-check -trapuv -g'
21 else
22 FFLAGS='-m64 -convert big_endian -fPIC'
23 fi
24
25 if test "x$IEEE" = x ; then
26 # No need for IEEE-754
27 FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations'
28 else
29 # Try to follow IEEE-754
30 FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math'
31 fi
32
33 F90FLAGS=$FFLAGS
34 F90OPTIM=$FOPTIM
35 CFLAGS='-O3 -m64 -fPIC'
36 GSLLIB='-lgsl -lgslcblas'
37
38 if [ "x$NETCDF_ROOT" != x ] ; then
39 INCLUDEDIR="${NETCDF_ROOT}/include"
40 INCLUDES="-I${NETCDF_ROOT}/include"
41 LIBDIR="${NETCDF_ROOT}/lib"
42 LIBS="-L${NETCDF_ROOT}/lib"
43 elif [ "x$NETCDF_HOME" != x ]; then
44 INCLUDEDIR="${NETCDF_HOME}/include"
45 INCLUDES="-I${NETCDF_HOME}/include"
46 LIBDIR="${NETCDF_HOME}/lib"
47 LIBS="-L${NETCDF_HOME}/lib"
48 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
49 NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
50 NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
51 INCLUDEDIR="${NETCDF_INC}"
52 INCLUDES="-I${NETCDF_INC}"
53 LIBDIR="${NETCDF_LIB}"
54 LIBS="-L${NETCDF_LIB}"
55 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
56 INCLUDEDIR="${NETCDF_INCDIR}"
57 INCLUDES="-I${NETCDF_INCDIR}"
58 LIBDIR="${NETCDF_LIBDIR}"
59 LIBS="-L${NETCDF_LIBDIR}"
60 elif test -d /usr/include/netcdf-3 ; then
61 INCLUDES='-I/usr/include/netcdf-3'
62 LIBS='-L/usr/lib64/netcdf-3 -lnetcdf_g77'
63 elif test -d /usr/include/netcdf ; then
64 INCLUDES='-I/usr/include/netcdf'
65 elif test -d /usr/local/netcdf ; then
66 INCLUDES='-I/usr/local/netcdf/include'
67 LIBS='-L/usr/local/netcdf/lib'
68 elif test -d /usr/local/include/netcdf.inc ; then
69 INCLUDES='-I/usr/local/include'
70 LIBS='-L/usr/local/lib64'
71 fi

  ViewVC Help
Powered by ViewVC 1.1.22