1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia64_cray_archer,v 1.1 2015/04/06 20:15:59 dfer Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
# To be used with the suite of cray compilers (PrgEnv-cray). |
7 |
# To get netcdf, add: |
8 |
# module load cray-hdf5-parallel/1.8.13 |
9 |
# module load cray-netcdf-hdf5parallel/4.3.2 |
10 |
|
11 |
CC='cc' |
12 |
FC='ftn' |
13 |
F90C='ftn' |
14 |
|
15 |
|
16 |
#DEFINES='-DWORDLENGTH=4 -DTARGET_CRAYXT -DNML_EXTENDED_F77' |
17 |
DEFINES='-DWORDLENGTH=4 -D_BYTESWAPIO -DHAVE_LAPACK' |
18 |
CPP='cpp -traditional -P' |
19 |
EXTENDED_SRC_FLAG='-Mextend' |
20 |
GET_FC_VERSION="-V" |
21 |
CHECK_FOR_LAPACK=t |
22 |
|
23 |
INCLUDES='-I/opt/cray/netcdf-hdf5parallel/4.3.2/cray/83/include -I/opt/cray/mpt/7.1.1/gni/mpich2-cray/83/include' |
24 |
LIBS='-L/opt/cray/netcdf-hdf5parallel/4.3.2/cray/83/lib -L/opt/cray/mpt/7.1.1/gni/mpich2-cray/83/lib' |
25 |
|
26 |
NOOPTFLAGS='-O0' |
27 |
NOOPTFILES='' |
28 |
|
29 |
if test "x$IEEE" = x ; then #- with optimisation: |
30 |
# FOPTIM='-O3 -hfp0 -hflex_mp=intolerant' |
31 |
FOPTIM='-O3 -hfp2' |
32 |
else |
33 |
FOPTIM='-O0' |
34 |
fi |
35 |
|
36 |
#- For big executable, this could help: |
37 |
#FFLAGS='-h pic -dynamic' |
38 |
#CFLAGS='-h pic -dynamic' |