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

Annotation of /MITgcm/tools/build_options/linux_amd64_gfortran

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


Revision 1.1 - (hide annotations) (download)
Sun Jul 9 22:37:54 2006 UTC (17 years, 10 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint58l_post, mitgcm_mapl_00, checkpoint58u_post, checkpoint58r_post, checkpoint58n_post, checkpoint58t_post, checkpoint58q_post, checkpoint58o_post, checkpoint58s_post, checkpoint58p_post, checkpoint58m_post
initial ci -- very similar to build_options/linux_ia32_gfortran but has:
  - looks for libs in /usr/lib64
  - removes the align-double optim flag

1 edhill 1.1 #!/bin/bash
2     #
3     # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_gfortran,v 1.4 2006/05/12 19:08:46 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 -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 -L/usr/lib64/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
51    

  ViewVC Help
Powered by ViewVC 1.1.22