-
Notifications
You must be signed in to change notification settings - Fork 0
/
dcpom_compile.sh
49 lines (43 loc) · 1.69 KB
/
dcpom_compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
:<< '#COMMENT'
# Setting for hibuna cluster & Intel Compiler
export FC=mpiifort
export FCFLAGS="-fPIC -cpp -DSJPACK -O3 -openmp -xHost -qopt-report -I${MKLROOT}/include/intel64/lp64"
HOST=
NETCDF_DIR=/ap/netcdf4/4.3.3.1-intel
NETCDFF_DIR=/ap/netcdf4-fortran/4.4.2-intel
INSTALL_DIR=/home/ykawai/lib/Dennou-OGCM/
GTOOL5LIB=/home/ykawai/lib/gtool5-serial/lib/libgtool5-serial.a
ISPACKLIB=/home/ykawai/lib/ispack/lib/libisp-avx.a
#ISPACKLIB=/home/ykawai/lib/ispack/lib/libisp-sse64.a
SPMLLIB=/home/ykawai/lib/spml/lib/libspml-omp.a
LAPACKLIB=no
export LDFLAGS="-L${MKLROOT}/lib/intel64"
export SYSLDLIBS=" -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -lpthread -lm"
#COMMENT
# :<< '#COMMENT'
# Setting for MacOS & GFortran
export FC=mpif90
export FCFLAGS="-fPIC -cpp -DSJPACK -O3 -fopenmp"
HOST=
NETCDF_DIR=/usr/local/
NETCDFF_DIR=/usr/local/
INSTALL_DIR=~/lib/DCPOM/
GTOOL5LIB=~/lib/gtool5/lib/libgtool5.a
ISPACKLIB=~/lib/ispack/lib/libisp.a
SPMLLIB=~/lib/spml/lib/libspml-omp.a
LAPACKLIB=no
export LDFLAGS="-L/usr/local/opt/lapack/lib"
export SYSLDLIBS=" -llapack"
#COMMENT
#-----------------------------------------------------------------------
./configure \
--with-netcdf=${NETCDF_DIR}/lib/libnetcdf.a \
--with-netcdf-include=${NETCDF_DIR}/include/netcdf.h \
--with-netcdff=${NETCDFF_DIR}/lib/libnetcdff.a \
--with-gtool5=${GTOOL5LIB} \
--with-spml=${SPMLLIB} \
--with-ispack=${ISPACKLIB} \
--with-dogcm-mode=AXISYM \
--enable-sjpack \
--with-lapack=${LAPACKLIB} \
--prefix=${INSTALL_DIR}