/[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.4 - (show annotations) (download)
Thu Jul 28 22:22:50 2011 UTC (12 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63a, checkpoint63b, checkpoint63c
Changes since 1.3: +4 -2 lines
add GET_FC_VERSION="--version"

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_open64.trapuv,v 1.3 2009/08/14 20:28:19 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 GET_FC_VERSION="--version"
28
29 NOOPTFLAGS='-O0 -g'
30 NOOPTFILES='ini_vertical_grid.F'
31
32 if test "x$DEVEL" != x ; then
33 FFLAGS='-m32 -fPIC -ffortran-bounds-check -trapuv -g'
34 # FFLAGS='-m32 -convert big_endian -fPIC -ffortran-bounds-check -trapuv -g'
35 else
36 FFLAGS='-m32 -fPIC'
37 # FFLAGS='-m32 -convert big_endian -fPIC'
38 fi
39
40 if test "x$IEEE" = x ; then
41 # No need for IEEE-754
42 FOPTIM='-O2 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations'
43 else
44 # full checking options:
45 NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F'
46 FFLAGS='-m32 -fPIC -ffortran-bounds-check -trapuv -g'
47 # Try to follow IEEE-754
48 FOPTIM='-O0 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math'
49 fi
50
51 F90FLAGS=$FFLAGS
52 F90OPTIM=$FOPTIM
53 CFLAGS='-O2 -m32 -fPIC'
54 GSLLIB='-lgsl -lgslcblas'
55
56 LIBS='-L/usr/local/pkg/netcdf/netcdf-3.5.1/g77/lib '
57 INCLUDES='-I/usr/local/pkg/netcdf/netcdf-3.5.1/g77/include '

  ViewVC Help
Powered by ViewVC 1.1.22