/[MITgcm]/MITgcm/tools/build_options/darwin_ia32_gfortran+mpi
ViewVC logotype

Contents of /MITgcm/tools/build_options/darwin_ia32_gfortran+mpi

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


Revision 1.1 - (show annotations) (download)
Wed Dec 23 12:52:32 2009 UTC (14 years, 4 months ago) by mlosch
Branch: MAIN
CVS Tags: checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62
use gfortran with Open MPI, works nicely on Intel Dual Core
MacBookPro. Installing Open MPI is also painless

1 #!/bin/bash
2
3 # $Header: $
4 #
5 # tested on MacBook Pro with Leopard
6 # on 23-Dec-2009
7 # gfortran (version 4.3.1) obtained via fink
8 # OpenMPI (version 1.4) obtained from http://www.open.mpi.org
9
10 CPP='/usr/bin/cpp -traditional -P'
11 FC=mpif90
12 #CC=gcc
13 # Following flag is needed when using 32-bit gfortran with 64-bit gcc,
14 # as can be the case right after switching to Snow Leopard.
15 #CFLAGS='-arch i386'
16 LINK=mpif90
17 NOOPTFLAGS='-O0'
18 EXTENDED_SRC_FLAG='-ffixed-line-length-132'
19 MPI='true'
20
21 S64='$(TOOLSDIR)/set64bitConst.sh'
22 #EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend'
23 #EH3 MAKEDEPEND=makedepend
24 DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'
25 #INCLUDES='-I/sw/include -I/opt/openmpi/include''
26 #LIBS='-L/sw/lib'
27 INCLUDES='-I/usr/local/include -I/opt/openmpi/include'
28 LIBS='-L/usr/local/lib'
29
30 # For IEEE, use the "-ffloat-store" option
31 if test "x$IEEE" = x ; then
32 FFLAGS='-Wunused -Wuninitialized -fsecond-underscore -fconvert=big-endian'
33 FOPTIM='-O3 -funroll-loops'
34 NOOPTFLAGS='-O2 -funroll-loops'
35 NOOPTFILES='gad_c4_adv_x.F gad_u3_adv_x.F'
36 else
37 FFLAGS='-Wunused -ffloat-store -fsecond-underscore -fconvert=big-endian'
38 FOPTIM='-O0'
39 fi

  ViewVC Help
Powered by ViewVC 1.1.22