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

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

Update Occigen arch files and IOIPSL install script to follow up with recent changesof Occigen settings.
EM

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