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

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

All GCMs:
Update MESU arch and fcm files, and add a dedicated IOIPSL install
script.
EM

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