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