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

Contents of /MITgcm/tools/build_options/linux_ia32_gfortran

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


Revision 1.4 - (show annotations) (download)
Fri May 12 19:08:46 2006 UTC (17 years, 11 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint58e_post, mitgcm_mapl_00, checkpoint58u_post, checkpoint58w_post, checkpoint60, checkpoint61, checkpoint58r_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58h_post, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58f_post, checkpoint58i_post, checkpoint58g_post, checkpoint58o_post, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint58p_post, checkpoint58m_post
Changes since 1.3: +2 -1 lines
add example lines where gcc is used as the C-preprocessor

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_gfortran,v 1.3 2005/10/16 06:35:31 edhill Exp $
4 # $Name: $
5 #
6
7 # Tested with gcc-gfortran v4.0.x as shipped with Fedora Core 4.
8 # It fixes the ' \' versus ' &' terminator problem but some
9 # namelist problems remain. The biggest seems to be the inability
10 # of current gfortran versions to support namelist syntax such as:
11 #
12 # fields(1,1) = 'UVELSLT ','VVELSLT ','WVELSLT ',
13 #
14 # which results in run-time errors.
15
16
17 FC=gfortran
18 CC=gcc
19 DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_TERMINATOR'
20 # CPP='gcc -E -traditional -P -'
21 CPP='cpp -traditional -P'
22 NOOPTFLAGS='-O0'
23
24 if test "x$IEEE" = x ; then
25 # No need for IEEE-754
26 # "warning: -Wuninitialized is not supported without -O"
27 FFLAGS='-Wunused'
28 FOPTIM='-O3 -malign-double -funroll-loops'
29 else
30 # Try to follow IEEE-754
31 has_sse2=f
32 grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t
33 if test "x$has_sse2" = xt ; then
34 FFLAGS='-Wunused -mfpmath=sse -msse -msse2'
35 else
36 FFLAGS='-Wunused -ffloat-store'
37 fi
38 # echo 'FFLAGS="'$FFLAGS'"'
39 FOPTIM='-O0 -malign-double'
40 fi
41
42 if test -d /usr/include/netcdf-3 ; then
43 INCLUDES='-I/usr/include/netcdf-3'
44 LIBS='-L/usr/lib/netcdf-3'
45 elif test -d /usr/include/netcdf ; then
46 INCLUDES='-I/usr/include/netcdf'
47 elif test -d /usr/local/netcdf ; then
48 INCLUDES='-I/usr/local/netcdf/include'
49 LIBS='-L/usr/local/netcdf/lib'
50 fi

  ViewVC Help
Powered by ViewVC 1.1.22