1 |
#!/bin/bash |
2 |
# |
3 |
# Ed Hill |
4 |
# |
5 |
# 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 |
6 |
# |
7 |
# adapted to GFDL's Itanium cluster |
8 |
# heimbach@mit.edu and baylor@mit.edu |
9 |
# |
10 |
# Will need to do module_load ifort.9.1.039 mpt-1.14 first |
11 |
|
12 |
CPP='/lib/cpp -traditional -P' |
13 |
|
14 |
# the '-convert big_endian' is crucial on this platform |
15 |
# -D_BYTESWAPIO doesn't work |
16 |
FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB -convert big_endian' |
17 |
|
18 |
FOPTIM='-O3 -align -ip' |
19 |
NOOPTFILES='ini_curvilinear_grid.F' |
20 |
NOOPTFLAGS='-O3' |
21 |
|
22 |
#P3 FOPTIM = ( $FOPTIM '-tpp6 -xWKM' ) |
23 |
#P4 FOPTIM = ( $FOPTIM '-tpp7 -xWKM' ) |
24 |
LIBS='-lmpi -lnetcdf' |
25 |
|
26 |
FC=ifort |
27 |
# Using gcc instead of icc since this is how netcdf was compiled |
28 |
#CC=icc |
29 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
30 |
|
31 |
#SKIP_NETCDF_CHECK=t |
32 |
#HAVE_NETCDF=t |
33 |
|
34 |
# These paths will likely change to newer versions of ifort |
35 |
cpath=`echo $CPATH | sed 's/:/ -I/g'` |
36 |
INCLUDES="-I/usr/local/include -I$cpath" |
37 |
cpath=`echo $CPATH | sed 's/:/ /g'` |
38 |
INCLUDEDIRS="/usr/local/include $cpath" |
39 |
#LIBDIRS='/usr/local/lib' |
40 |
#MPIINCLUDEDIR='/opt/mpt/1.14/include' |
41 |
#MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h' |
42 |
#MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h ./mpi_headers/mpif_parameters.h' |