source: trunk/LMDZ.COMMON/ioipsl/install_ioipsl_ifort.bash @ 1853

Last change on this file since 1853 was 1824, checked in by emillour, 7 years ago

Common dynamics:

  • enable possiblity to store multiple time steps in the restart.nc file (flag "ecritstart" gives the frequency, in dynamical steps).
  • fixed dynredem_mod.F90 to correctly write multiple time steps.
  • fixed computation of JH_cur in the mars case where "hour_ini" contains the initial time of day read from the start.nc file
  • minor fix in dynetat0.F90

RY

  • 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 Gnome
3#
4
5#0. Preliminary stuff
6NETCDF="/opt/netcdf3/ifort"
7netcdf_include="$NETCDF/include"
8netcdf_lib="$NETCDF/lib"
9echo $netcdf_include
10echo $netcdf_lib
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 "ciclad" configuration to AA_make.gdef
22echo "#-Q- cicladi  #- Global definitions for ciclad at UPMC, ifort" >> AA_make.gdef
23echo "#-Q- cicladi  M_K = make" >> AA_make.gdef
24echo "#-Q- cicladi  P_C = cpp" >> AA_make.gdef
25echo '#-Q- cicladi  P_O = -P -C $(P_P)' >> AA_make.gdef
26echo "#-Q- cicladi  F_C = ifort -mcmodel=large -shared-intel -c" >> AA_make.gdef
27echo "#-Q- cicladi  #-D- MD    F_D = -g" >> AA_make.gdef
28echo "#-Q- cicladi  #-D- MN    F_D =" >> AA_make.gdef
29echo "#-Q- cicladi  #-P- I4R4  F_P = -integer-size 32" >> AA_make.gdef
30echo "#-Q- cicladi  #-P- I4R8  F_P = -integer-size 32 -real-size 64" >> AA_make.gdef
31echo "#-Q- cicladi  #-P- I8R8  F_P = -integer-size 64 -real-size 64" >> AA_make.gdef
32echo '#-Q- cicladi  F_O = -O $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)' >> AA_make.gdef
33echo "#-Q- cicladi  F_L = ifort" >> AA_make.gdef
34echo "#-Q- cicladi  M_M = 0" >> AA_make.gdef
35echo "#-Q- cicladi  L_X = 0" >> AA_make.gdef
36echo "#-Q- cicladi  L_O =" >> AA_make.gdef
37echo "#-Q- cicladi  A_C = ar -r" >> AA_make.gdef
38echo "#-Q- cicladi  A_G = ar -x" >> AA_make.gdef
39echo "#-Q- cicladi  C_C = icc -c" >> AA_make.gdef
40echo "#-Q- cicladi  C_O =" >> AA_make.gdef
41echo "#-Q- cicladi  C_L = icc" >> AA_make.gdef
42echo "#-Q- cicladi  #-" >> AA_make.gdef
43echo "#-Q- cicladi  NCDF_INC = ${netcdf_include}" >> AA_make.gdef
44echo "#-Q- cicladi  NCDF_LIB = -L${netcdf_lib} -lnetcdf" >> AA_make.gdef
45echo "#-Q- cicladi  #-" >> AA_make.gdef
46
47# set default working precision for IOIPSL:
48./ins_make -t cicladi -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.