source: trunk/LMDZ.COMMON/ioipsl/install_ioipsl_occigen.bash @ 1685

Last change on this file since 1685 was 1671, checked in by emillour, 8 years ago

Common dynamical core:
Update OCCIGEN settings.
EM

  • Property svn:executable set to *
File size: 2.3 KB
Line 
1#!/bin/bash
2# script to download and install the latest version of IOIPSL on occigen
3#
4
5#0. Preliminary stuff
6module purge
7#module load intel/15.6.233
8#module load intelmpi/5.1.3.258
9#module load hdf5/1.8.14
10#module load netcdf/4.3.3-rc2_fortran-4.4.1
11module load intel/17.0
12module load intelmpi/2017.0.098
13module load hdf5/1.8.17
14module load netcdf/4.4.0_fortran-4.4.2
15
16whereami=`pwd -P`
17
18# 1. Get IOIPSL (via modipsl)
19svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl
20cd modipsl/util
21
22./model IOIPSL_PLUS
23
24# 2. Set correct settings:
25# add a "occigen" configuration to AA_make.gdef
26echo "#-Q- occigen  #- Global definitions for Occigen at CINES, ifort" >> AA_make.gdef
27echo "#-Q- occigen  M_K = make" >> AA_make.gdef
28echo "#-Q- occigen  P_C = cpp" >> AA_make.gdef
29echo '#-Q- occigen  P_O = -P -C $(P_P)' >> AA_make.gdef
30echo "#-Q- occigen  F_C = ifort -mcmodel=medium -shared-intel -c" >> AA_make.gdef
31echo "#-Q- occigen  #-D- MD    F_D = -g" >> AA_make.gdef
32echo "#-Q- occigen  #-D- MN    F_D =" >> AA_make.gdef
33echo "#-Q- occigen  #-P- I4R4  F_P = -integer-size 32" >> AA_make.gdef
34echo "#-Q- occigen  #-P- I4R8  F_P = -integer-size 32 -real-size 64" >> AA_make.gdef
35echo "#-Q- occigen  #-P- I8R8  F_P = -integer-size 64 -real-size 64" >> AA_make.gdef
36echo '#-Q- occigen  F_O = -O $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)' >> AA_make.gdef
37echo "#-Q- occigen  F_L = ifort" >> AA_make.gdef
38echo "#-Q- occigen  M_M = 0" >> AA_make.gdef
39echo "#-Q- occigen  L_X = 0" >> AA_make.gdef
40echo "#-Q- occigen  L_O =" >> AA_make.gdef
41echo "#-Q- occigen  A_C = ar -r" >> AA_make.gdef
42echo "#-Q- occigen  A_G = ar -x" >> AA_make.gdef
43echo "#-Q- occigen  C_C = icc -c" >> AA_make.gdef
44echo "#-Q- occigen  C_O =" >> AA_make.gdef
45echo "#-Q- occigen  C_L = icc" >> AA_make.gdef
46echo "#-Q- occigen  #-" >> AA_make.gdef
47echo "#-Q- occigen  NCDF_INC = ${NETCDFF_INCDIR}" >> AA_make.gdef
48echo "#-Q- occigen  NCDF_LIB = -L${NETCDFF_LIBDIR} -lnetcdff" >> AA_make.gdef
49echo "#-Q- occigen  #-" >> AA_make.gdef
50
51# set default working precision for IOIPSL:
52./ins_make -t occigen -p I4R8
53
54## 3. build ioipsl:
55cd ../modeles/IOIPSL/src
56make
57## Compile the rebuild tool:
58cd ../tools
59make
60
61if [[ -f ${whereami}/modipsl/lib/libioipsl.a ]] 
62  then
63  echo "OK: ioipsl library is in ${whereami}/modipsl/lib"
64else
65  echo "Something went wrong..."
66fi
Note: See TracBrowser for help on using the repository browser.