1 |
heimbach |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
jmc |
1.4 |
# $Header: $ |
4 |
|
|
# $Name: $ |
5 |
|
|
|
6 |
heimbach |
1.1 |
# Ed Hill |
7 |
|
|
# tested on orion.jpl.nasa.gov (Linux orion 2.4.21-sgi230r7 #1 SMP Tue Oct 7 22:38:53 PDT 2003 ia64 unknown), 20031029 |
8 |
|
|
# |
9 |
|
|
# adapted to meinesz.mit.edu (eaps6) |
10 |
|
|
# heimbach@mit.edu |
11 |
|
|
|
12 |
jmc |
1.4 |
# These paths will likely change to newer versions of ifort |
13 |
|
|
#ph( |
14 |
|
|
#LIBS='-L/opt/intel_fc_80/lib -lmpi' |
15 |
|
|
#FC=/opt/intel_fc_80/bin/ifort |
16 |
|
|
FC=/opt/intel_9.0.03x/bin/ifort |
17 |
|
|
LIBS='-L/opt/intel_9.0.03x/lib -lmpi' |
18 |
|
|
#ph) |
19 |
heimbach |
1.1 |
|
20 |
|
|
# the '-convert big_endian' is crucial on this platform |
21 |
|
|
# -D_BYTESWAPIO doesn't work |
22 |
|
|
# also switch to -DWORDLENGTH=1 |
23 |
heimbach |
1.2 |
# replace WORDLENGTH=1 by assume byterecl |
24 |
heimbach |
1.1 |
# |
25 |
heimbach |
1.2 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
26 |
jmc |
1.4 |
CPP='/lib/cpp -traditional -P' |
27 |
|
|
EXTENDED_SRC_FLAG='-132' |
28 |
heimbach |
1.1 |
|
29 |
heimbach |
1.2 |
#ph o switching to columbia flags |
30 |
|
|
#ph o use ifort options -convert big_endian -assume byterecl |
31 |
|
|
#ph o add -Wl,-ldl flag to (temporarily?) resolve glibc(?) problem |
32 |
heimbach |
1.3 |
#FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB -Wl,-ldl -convert big_endian -assume byterecl' |
33 |
heimbach |
1.2 |
###FFLAGS='-extend_source -O2 -tpp2 -ftz -fno-alias -fno-fnalias -convert big_endian -assume byterecl' |
34 |
heimbach |
1.3 |
# |
35 |
|
|
#ph o switching to v9.x compiler series |
36 |
|
|
#ph o new flag "-i-static" removes all Intel-specific shared libs" |
37 |
jmc |
1.4 |
FFLAGS="$FFLAGS -mp -w95 -W0 -WB -i-static -convert big_endian -assume byterecl" |
38 |
|
|
#- might want to use '-r8' for fizhi pkg: |
39 |
|
|
#FFLAGS="$FFLAGS -r8" |
40 |
heimbach |
1.1 |
|
41 |
|
|
# FOPTIM='-O3 -align' |
42 |
|
|
# |
43 |
jmc |
1.4 |
#P3 FOPTIM = ( $FOPTIM '-tpp6 -xWKM' ) |
44 |
heimbach |
1.1 |
#P4 FOPTIM = ( $FOPTIM '-tpp7 -xWKM' ) |
45 |
|
|
|