1 |
#!/bin/bash |
2 |
# |
3 |
# Ed Hill |
4 |
# |
5 |
# tested on faulks, 20030818 |
6 |
# |
7 |
# Build options for the intel 8.0 fortran compiler |
8 |
# the compiler is now called ifort (not ifc) and it appears to |
9 |
# need -DWORDLENGTH=1 and not -DWORDLENGTH=4 (which is what ifc 6.0) used to have. |
10 |
# ph: use ifort compiler options -convert big_endian -assume byterecl |
11 |
|
12 |
FC=mpif90 |
13 |
F90C=mpif90 |
14 |
DEFINES='-DWORDLENGTH=4' |
15 |
LINK='ifort' |
16 |
CPP='cpp -traditional -P' |
17 |
#INCLUDES='-I/usr/include/netcdf' |
18 |
|
19 |
INCLUDES='-I/opt/netcdf-3.6.0-p1/include -I/usr/local/topspin/mpi/mpich/include' |
20 |
LIBS='-L/opt/netcdf-3.6.0-p1/lib -L/usr/local/topspin/mpi/mpich/lib64 -lmpich_i -lpthread' |
21 |
|
22 |
# Note that the -mp switch is for ieee "maintain precision" and is |
23 |
# roughly equivalent to -ieee |
24 |
if test "x$IEEE" = x ; then |
25 |
# lz( FOPTIM='-O3 -align' ) |
26 |
FOPTIM= |
27 |
#P3 FOPTIM=$FOPTIM' -tpp6 -xWKM' |
28 |
#P4 FOPTIM=$FOPTIM' -tpp7 -xWKM' |
29 |
FFLAGS='-132 -r8 -i4 -w95 -convert big_endian -assume byterecl' |
30 |
else |
31 |
FOPTIM='-O0 -noalign' |
32 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl' |
33 |
#FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' |
34 |
fi |