source: trunk/LMDZ.COMMON/ioipsl/install_ioipsl_gnome.bash @ 985

Last change on this file since 985 was 840, checked in by aslmd, 12 years ago

LMDZ.COMMON updated compiling scripts so that models could be compiled over large domains. also updated ifort links on gnome.

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