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

Contents of /MITgcm/tools/build_options/linux_ia32_ifort

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


Revision 1.16 - (show annotations) (download)
Sun Mar 21 17:58:17 2010 UTC (14 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63a, checkpoint63b, checkpoint63, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.15: +15 -7 lines
- remove "-r8 -i4" options (more similar to other compiler optfile).
- does not set FFLAGS (done in genmake2) but append to it
- set EXTENDED_SRC_FLAG

1 #!/bin/bash
2 #
3 # $Header: $
4 # $Name: $
5
6 # Ed Hill
7 #
8 # tested on faulks, 20030818
9 #
10 # Build options for the intel 8.0 fortran compiler
11 # the compiler is now called ifort (not ifc) and it appears to
12 # need -DWORDLENGTH=1 and not -DWORDLENGTH=4 (which is what ifc 6.0) used to have.
13 # ph: use ifort compiler options -convert big_endian -assume byterecl
14
15 FC=ifort
16 F90C=ifort
17 LINK='ifort -static'
18
19 DEFINES='-DWORDLENGTH=4'
20 CPP='cpp -traditional -P'
21 F90FIXEDFORMAT='-fixed -Tf'
22 EXTENDED_SRC_FLAG='-132'
23 #OMPFLAG='-openmp'
24
25 ###INCLUDES='-I/ocean/data4/ce107/netcdf-3.6.1/Linux-i686-intel8/include'
26 ###LIBS='-L/ocean/data4/ce107/netcdf-3.6.1/Linux-i686-intel8/lib -lnetcdf'
27 INCLUDES='-I/usr/local/pkg/netcdf/include'
28 LIBS='-L/usr/local/pkg/netcdf/lib -lnetcdf'
29
30 # Note that the -mp switch is for ieee "maintain precision" and is
31 # roughly equivalent to -ieee
32 if test "x$IEEE" = x ; then
33 FOPTIM='-O3 -align'
34 F90OPTIM='-O3'
35 #P3 FOPTIM=$FOPTIM' -tpp6 -xWKM'
36 #P4 FOPTIM=$FOPTIM' -tpp7 -xWKM'
37 FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl"
38 else
39 FOPTIM='-O0 -noalign'
40 F90OPTIM='-O0 -g'
41 FFLAGS="$FFLAGS -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl"
42 #FFLAGS="$FFLAGS -mp -w95 -W0 -WB"
43 fi
44 #- might want to use '-r8' for fizhi pkg:
45 #FFLAGS="$FFLAGS -r8"
46
47 F90FLAGS=$FFLAGS

  ViewVC Help
Powered by ViewVC 1.1.22