1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
jmc |
1.9 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/osf1_alpha_f77,v 1.8 2011/09/12 18:03:26 jmc Exp $ |
4 |
jmc |
1.7 |
# $Name: $ |
5 |
edhill |
1.1 |
|
6 |
jmc |
1.8 |
# confirmed on Halem by eh3, 2003-09-03 |
7 |
|
|
# netcdf: Tested and works: Wed Jul 21 11:55:34 EDT 2004 |
8 |
edhill |
1.1 |
|
9 |
jmc |
1.8 |
FC='f77' |
10 |
|
|
LINK='f77' |
11 |
|
|
|
12 |
|
|
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
13 |
edhill |
1.1 |
DEFINES='-DTARGET_DEC -DWORDLENGTH=1' |
14 |
edhill |
1.6 |
CPP='/usr/local/bin/cpp -traditional -P' |
15 |
jmc |
1.8 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
16 |
|
|
RMFILES='*.p.out' |
17 |
|
|
EXTENDED_SRC_FLAG='-extend_source' |
18 |
edhill |
1.2 |
|
19 |
edhill |
1.1 |
#ph: makedepend not available on some/many DEC Alpha's; use mkdep instead |
20 |
edhill |
1.2 |
#EH3 Remove the buggy mkdep since the newly included cyrus version |
21 |
|
|
#EH3 works much better on machines such as "halem" |
22 |
|
|
#EH3 MAKEDEPEND='mkdep -f depend.out' |
23 |
|
|
|
24 |
jmc |
1.8 |
NOOPTFLAGS='-O0' |
25 |
|
|
NOOPTFILES='barrier.F different_multiple.F external_fields_load.F' |
26 |
|
|
|
27 |
|
|
FFLAGS="$FFLAGS -convert big_endian" |
28 |
|
|
#FFLAGS="$FFLAGS -r8" |
29 |
edhill |
1.3 |
|
30 |
jmc |
1.8 |
FFLAGS="$FFLAGS -fpe2 -automatic -call_shared -notransform_loops -align dcommons" |
31 |
edhill |
1.1 |
FOPTIM='-O5 -fast -tune host -inline all' |
32 |
|
|
#ph: -O5 probably too aggressive in conjunction with adjoint code |
33 |
jmc |
1.8 |
|
34 |
|
|
if test "x$MPI" = xtrue ; then |
35 |
|
|
INCLUDES="$INCLUDES -I/usr/ulocal/stow/netcdf-3.5.1/include" |
36 |
|
|
LIBS="-L/usr/ulocal/stow/netcdf-3.5.1/lib -lnetcdf -lfmpi -lmpi -lkmp_osfp10 -pthread" |
37 |
|
|
else |
38 |
|
|
INCLUDES="$INCLUDES -I/usr/ulocal/stow/netcdf-3.5.1/include" |
39 |
|
|
LIBS="-L/usr/ulocal/stow/netcdf-3.5.1/lib" |
40 |
|
|
fi |
41 |
|
|
|