1 |
heimbach |
1.1 |
# Provided by Michael Bates |
2 |
|
|
# http://mitgcm.org/pipermail/mitgcm-support/2013-September/008497.html |
3 |
|
|
# Tested on yellowstone using modules: |
4 |
|
|
#Currently Loaded Modules: |
5 |
|
|
# 1) ncarenv/1.0 3) intel/12.1.5 5) netcdf/4.3.0 |
6 |
|
|
# 2) ncarbinlibs/1.0 4) ncarcompilers/1.0 6) impi/4.0.3.008 |
7 |
|
|
|
8 |
|
|
FC=mpif90 |
9 |
|
|
CC=mpicc |
10 |
|
|
F90C=mpif90 |
11 |
|
|
|
12 |
|
|
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
13 |
|
|
CPP='/lib/cpp -traditional -P' |
14 |
|
|
EXTENDED_SRC_FLAG='-132' |
15 |
|
|
OMPFLAG='-openmp' |
16 |
|
|
CFLAGS='-fPIC' |
17 |
|
|
LDADD='-shared-intel' |
18 |
|
|
|
19 |
|
|
LIBS=$LIB_NCAR |
20 |
|
|
INCLUDES="$INC_NCAR -I${I_MPI_ROOT}intel64/include" |
21 |
|
|
|
22 |
|
|
CPPINCLUDES=$INC_NCAR |
23 |
|
|
|
24 |
|
|
NOOPTFLAGS='-O0 -fPIC' |
25 |
|
|
|
26 |
|
|
FFLAGS="-fPIC -convert big_endian -assume byterecl -align -march=corei7 -axAVX" |
27 |
|
|
FDEBUG='-W0 -WB' |
28 |
|
|
FFLAGS="$FDEBUG $FFLAGS" |
29 |
|
|
|
30 |
|
|
FOPTIM='-O2' |
31 |
|
|
FOPTIM="$FOPTIM -ip -fp-model precise -traceback -ftz" |