source: trunk/LMDZ.COMMON/ioipsl/install_ioipsl_pgf90.bash @ 1759

Last change on this file since 1759 was 1567, checked in by emillour, 8 years ago

Update the install_ioipsl scripts to include building
the rebuild script.
EM

  • Property svn:executable set to *
File size: 1.2 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_PLUS
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## Compile the rebuild tool:
34cd ../tools
35make
36
37if [[ -f ${whereami}/modipsl/lib/libioipsl.a ]] 
38  then
39  echo "OK: ioipsl library is in ${whereami}/modipsl/lib"
40else
41  echo "Something went wrong..."
42fi
43
Note: See TracBrowser for help on using the repository browser.