1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/osf1_alpha_f77,v 1.7 2010/03/21 22:22:53 jmc Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
# confirmed on Halem by eh3, 2003-09-03 |
7 |
# netcdf: Tested and works: Wed Jul 21 11:55:34 EDT 2004 |
8 |
|
9 |
FC='f77' |
10 |
LINK='f77' |
11 |
|
12 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
13 |
DEFINES='-DTARGET_DEC -DWORDLENGTH=1' |
14 |
CPP='/usr/local/bin/cpp -traditional -P' |
15 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
16 |
RMFILES='*.p.out' |
17 |
EXTENDED_SRC_FLAG='-extend_source' |
18 |
|
19 |
#ph: makedepend not available on some/many DEC Alpha's; use mkdep instead |
20 |
#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 |
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 |
|
30 |
FFLAGS="$FFLAGS -fpe2 -automatic -call_shared -notransform_loops -align dcommons" |
31 |
FOPTIM='-O5 -fast -tune host -inline all' |
32 |
#ph: -O5 probably too aggressive in conjunction with adjoint code |
33 |
|
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 |