/[MITgcm]/MITgcm/tools/build_options/linux_ia32_open64.trapuv
ViewVC logotype

Contents of /MITgcm/tools/build_options/linux_ia32_open64.trapuv

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


Revision 1.2 - (show annotations) (download)
Fri Dec 28 21:20:53 2007 UTC (16 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint59m, checkpoint59o, checkpoint59p, checkpoint59n, checkpoint59r, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61t, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint59q, checkpoint60, checkpoint61
Changes since 1.1: +12 -37 lines
add path for netcdf libs & includes

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_open64.trapuv,v 1.1 2007/12/14 03:01:41 jmc Exp $
4 # $Name: $
5 #
6 # Build options for Fedore Core 4 i686 Pentium4
7 # tested on ACES, (Linux a54-1727-072 2.6.11.7smp-perfctr-tty #5 SMP Fri Apr 22 15:07:50 EDT 2005 i686 i686 i386 GNU/Linux) system 20071213
8 #
9 # Please note the appropriate module command:
10 # module add open64
11 #
12 # Set environment variable 'GSL_IEEE_MODE' if using "-gsl" option:
13 # sh,bash:
14 # export GSL_IEEE_MODE=double-precision,mask-underflow,mask-denormalized
15 # csh/tcsh:
16 # setenv GSL_IEEE_MODE double-precision,mask-underflow,mask-denormalized
17
18 CC=opencc
19 FC=openf90
20 LD=openf90
21 # due to Pb in version 4.0 of the compiler with option "-byteswapio" (or "-convert big_endian")
22 # use the MITgcm local version of bytes swapping:
23 DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4'
24 #DEFINES='-DWORDLENGTH=4'
25 CPP='cpp -traditional -P'
26 MAKEDEPEND=/usr/X11R6/bin/makedepend
27 NOOPTFLAGS='-O0 -m32 -g -fPIC'
28 NOOPTFILES='ini_vertical_grid.F'
29
30 if test "x$DEVEL" != x ; then
31 FFLAGS='-m32 -fPIC -ffortran-bounds-check -trapuv -g'
32 # FFLAGS='-m32 -convert big_endian -fPIC -ffortran-bounds-check -trapuv -g'
33 else
34 FFLAGS='-m32 -fPIC'
35 # FFLAGS='-m32 -convert big_endian -fPIC'
36 fi
37
38 if test "x$IEEE" = x ; then
39 # No need for IEEE-754
40 FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations'
41 else
42 # full checking options:
43 NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F'
44 FFLAGS='-m32 -fPIC -ffortran-bounds-check -trapuv -g'
45 # Try to follow IEEE-754
46 FOPTIM='-O0 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math'
47 fi
48
49 F90FLAGS=$FFLAGS
50 F90OPTIM=$FOPTIM
51 CFLAGS='-O2 -m32 -fPIC'
52 GSLLIB='-lgsl -lgslcblas'
53
54 LIBS='-L/usr/local/pkg/netcdf/netcdf-3.5.1/g77/lib '
55 INCLUDES='-I/usr/local/pkg/netcdf/netcdf-3.5.1/g77/include '

  ViewVC Help
Powered by ViewVC 1.1.22