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

Last change on this file since 1512 was 1449, checked in by emillour, 10 years ago

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