1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/osf1_halem_mpi,v 1.3 2004/07/22 17:39:29 edhill Exp $ |
4 |
# |
5 |
|
6 |
# confirmed on Halem by eh3, 2003-09-04 |
7 |
|
8 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
9 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_DEC -DWORDLENGTH=1' |
10 |
|
11 |
# netcdf |
12 |
# Tested and works: Wed Jul 21 11:55:34 EDT 2004 |
13 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
14 |
INCLUDES="$INCLUDES -I/usr/ulocal/stow/netcdf-3.5.1/include" |
15 |
LIBS="-L/usr/ulocal/stow/netcdf-3.5.1/lib -lnetcdf" |
16 |
|
17 |
CPP='/usr/local/bin/cpp -P -traditional' |
18 |
#ph: makedepend not available on some/many DEC Alpha's; use mkdep instead |
19 |
FC='f77' |
20 |
LINK='f77' |
21 |
LIBS='-lfmpi -lmpi -lkmp_osfp10 -pthread' |
22 |
FFLAGS='-fpe2 -convert big_endian -r8 -extend_source -automatic -call_shared -notransform_loops -align dcommons' |
23 |
FOPTIM='-O5 -fast -tune host -inline all' |
24 |
#ph: -O5 probably too aggressive in conjunction with adjoint code |
25 |
NOOPTFILES='barrier.F different_multiple.F external_fields_load.F' |
26 |
NOOPTFLAGS='-O0' |
27 |
RMFILES='*.p.out' |