1 |
#!/bin/bash |
2 |
|
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_ifort+mpi_sal_oxford,v 1.3 2012/10/26 19:14:14 jmc Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
# ---------------------------------------------------------------------------- |
7 |
# FOR MITgcm COMPILATION ON OSC CLUSTER SAL |
8 |
# Last updated: HP 04/08/10 |
9 |
# ---------------------------------------------------------------------------- |
10 |
|
11 |
FC=mpif77 |
12 |
CC=mpicc |
13 |
LINK=mpif77 |
14 |
|
15 |
CPP='/usr/bin/cpp -P -traditional' |
16 |
MPI='true' |
17 |
|
18 |
#FFLAGS='-fPIC -r8 -i4 -WB -convert big_endian -assume byterecl' |
19 |
FFLAGS='-r8 -i4 -WB -convert big_endian -assume byterecl -mcmodel=medium -shared-intel -g' |
20 |
FOPTIM='-O3 -xssse3' |
21 |
|
22 |
F90FLAGS=$FFLAGS |
23 |
F90OPTIM=$FOPTIM |
24 |
|
25 |
#CFLAGS='-O3 -xssse3 -ip -fPIC' |
26 |
CFLAGS='-03 -xssse3 -ip' |
27 |
|
28 |
DEFINES='-DALLOW_USE_MPI -DWORDLENGTH=4' |
29 |
|
30 |
# -------------------------- |
31 |
# INCLUDE NETCDF DIRECTORIES |
32 |
# -------------------------- |
33 |
INCLUDEDIRS="" |
34 |
INCLUDES="-I/home/system/software/sal/lib/netcdf-4.0/include" |
35 |
LIBS="-L/home/system/software/sal/lib/netcdf-4.0/lib -lnetcdf -lmpi" |
36 |
|
37 |
# ----------------------- |
38 |
# INCLUDE MPI DIRECTORIES |
39 |
# ----------------------- |
40 |
INCLUDES="$INCLUDES -I/usr/include" |
41 |
INCLUDEDIRS="/usr/include" |
42 |
LIBS="$LIBS -L/usr/lib64/" |
43 |
#INCLUDES="-I/usr/include -I/home/system/software/redqueen/libs/netcdf-4.0/include" |
44 |
#LIBS="-L/home/system/software/redqueen/libs/netcdf-4.0/lib -lnetcdf -lmpi" |
45 |
|
46 |
#- used for parallel (MPI) DIVA |
47 |
MPIINCLUDEDIR="/usr/include" |
48 |
#MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h' |