source: codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/ioipsl/install_ioipsl_pgf90.bash @ 242

Last change on this file since 242 was 221, checked in by ymipsl, 10 years ago

Creating temporary dynamico/lmdz/saturn branche

YM

  • 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 pgf90
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_pgi/include"
10netcdf_lib="/donnees/emlmd/netcdf64-4.0.1_pgi/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:"linux    NCDF_INC = /distrib/local/netcdf/pgf/include/":"linux    NCDF_INC = ${netcdf_include}":1 \
24    -e s:"linux    NCDF_LIB = -L/distrib/local/netcdf/pgf/lib/":"linux    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 linux -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.