/[MITgcm]/MITgcm/tools/build_options/linux_amd64_ifort+mpi_ice_nas
ViewVC logotype

Contents of /MITgcm/tools/build_options/linux_amd64_ifort+mpi_ice_nas

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


Revision 1.7 - (show annotations) (download)
Thu Jun 16 16:30:07 2011 UTC (12 years, 10 months ago) by zhc
Branch: MAIN
Changes since 1.6: +42 -46 lines
new OS & modules

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_ifort+mpi_ice_nas,v 1.6 2010/10/26 19:32:04 heimbach Exp $
4 # $Name: $
5
6 # tested on pleiades using SLES11 and:
7 # module load comp-intel/2011.2 mpi-sgi/mpt.2.04-fsa netcdf/4.0
8
9 FC=ifort
10
11 DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'
12 CPP='/lib/cpp -traditional -P'
13 EXTENDED_SRC_FLAG='-132'
14 OMPFLAG='-openmp'
15 CFLAGS='-fPIC'
16 LDADD='-shared-intel'
17
18 LIBS='-L/nasa/sgi/mpt/2.04-fsa/lib -lmpi -L/nasa/netcdf/4.0/lib -lnetcdf'
19 INCLUDES='-I/nasa/sgi/mpt/2.04-fsa/include -I/nasa/netcdf/4.0/include'
20 INCLUDEDIRS='/nasa/sgi/mpt/2.04-fsa/include'
21 MPIINCLUDEDIR='/nasa/sgi/mpt/2.04-fsa/include'
22 MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h'
23 MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h ./mpi_headers/mpif_parameters.h'
24
25 NOOPTFLAGS='-O0 -fPIC'
26
27 if test "x$IEEE" = x ; then
28 # No need for IEEE-754
29 FFLAGS="$FFLAGS -fPIC -W0 -WB -convert big_endian -assume byterecl -align"
30 FOPTIM='-O2 -ip -fp-model precise -axSSSE4.2,SSSE3 -traceback -ftz'
31 NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F'
32 else
33 # Try to follow IEEE-754
34 FFLAGS="$FFLAGS -fPIC -w95 -W0 -WB -convert big_endian -assume byterecl -noalign"
35 FOPTIM='-O0'
36 fi
37 #- might want to use '-r8' for fizhi pkg:
38 #FFLAGS="$FFLAGS -r8"
39
40 #- For really big executable (> 2 GB), uncomment following 2 lines
41 #FFLAGS="$FFLAGS -mcmodel=medium -shared-intel"
42 #CFLAGS='-mcmodel=medium'

  ViewVC Help
Powered by ViewVC 1.1.22