source: trunk/LMDZ.COMMON/ioipsl/install_ioipsl_gfortan.bash @ 492

Last change on this file since 492 was 456, checked in by emillour, 13 years ago

IOIPSL: trying to make the best choices...
Removed local (obsolete) version and added scripts which can be used to download latest version. Should make things easier to track changes and be able to update, if necessary.
EM

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/bash
2# script to download and install the latest version of IOIPSL
3# using gfortran
4# You'll probably have to change paths to NetCDF library 'lib' and 'include'
5# below to adapt this script to your computer.
6
7#0. Preliminary stuff
8# netcdf include and lib dirs:
9netcdf_include="/donnees/emlmd/netcdf64-4.0.1_gfortran/include"
10netcdf_lib="/donnees/emlmd/netcdf64-4.0.1_gfortran/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
19
20# 2. Set correct settings:
21# modify path to netcdf in 'AA_make.gdef'
22cp AA_make.gdef AA_make.gdef.old
23sed -e s:"gfortran  NCDF_INC = /usr/local/include":"gfortran  NCDF_INC = ${netcdf_include}":1 \
24    -e s:"gfortran  NCDF_LIB = -L/usr/local/lib":"gfortran  NCDF_LIB = -L${netcdf_lib}":1 \
25    AA_make.gdef.old > AA_make.gdef
26
27# set default working precision for IOIPSL:
28./ins_make -t gfortran -p I4R8
29
30## 3. build ioipsl:
31cd ../modeles/IOIPSL/src
32make
33
34if [[ -f ${whereami}/modipsl/lib/libioipsl.a ]] 
35  then
36  echo "OK: ioipsl library is in ${whereami}/modipsl/lib"
37else
38  echo "Something went wrong..."
39fi
40
Note: See TracBrowser for help on using the repository browser.