1 |
utke |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
jmc |
1.4 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_ifort+oad+mpi,v 1.3 2008/03/18 19:51:39 utke Exp $ |
4 |
|
|
# $Name: $ |
5 |
|
|
|
6 |
|
|
# These are the build options used with the Intel compiler together with OpenAD and MPI |
7 |
utke |
1.1 |
|
8 |
|
|
|
9 |
|
|
FC='mpif77' |
10 |
|
|
CC='mpicc' |
11 |
|
|
F90C='mpif90' |
12 |
|
|
F90FIXEDFORMAT='-fixed -Tf' |
13 |
|
|
LINK='mpif90' |
14 |
|
|
INCLUDES='-I${MPIROOT}/include' |
15 |
|
|
LIBS='' |
16 |
|
|
|
17 |
utke |
1.3 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DALLOW_AUTODIFF_OPENAD' |
18 |
utke |
1.1 |
CPP='cpp -traditional -P' |
19 |
|
|
|
20 |
|
|
NOOPTFLAGS='-O0' |
21 |
|
|
NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F' |
22 |
|
|
|
23 |
|
|
# Note that the -mp switch is for ieee "maintain precision" and is |
24 |
|
|
# roughly equivalent to -ieee |
25 |
|
|
if test "x$IEEE" = x ; then |
26 |
utke |
1.3 |
FOPTIM='-O0 -g -align' |
27 |
utke |
1.2 |
FFLAGS='-132 -w95 -W0 -WB -assume byterecl -convert big_endian' |
28 |
utke |
1.1 |
else |
29 |
|
|
FOPTIM='-O0 -noalign' |
30 |
utke |
1.2 |
FFLAGS='-132 -w95 -W0 -WB -pc64 -xW -assume byterecl -convert big_endian' |
31 |
utke |
1.1 |
fi |
32 |
|
|
|
33 |
|
|
F90FLAGS=$FFLAGS |
34 |
|
|
F90OPTIM=$FOPTIM |
35 |
|
|
|
36 |
|
|
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
37 |
|
|
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F' |