source: trunk/LMDZ.COMMON/ioipsl/compile_ioipsl.bash @ 233

Last change on this file since 233 was 140, checked in by slebonnois, 14 years ago

SL: petit ajout de commentaires pour aider a installer IOIPSL quand on recupere le GCM.

  • Property svn:executable set to *
File size: 848 bytes
Line 
1#!/bin/bash
2#
3# Aymeric: pour construire IOIPSL [adapte de get_lmdz_ciclad_pgf90.bash]
4#
5
6# ADVICE: copy the [GCMdir]/LMDZ.COMMON/ioipsl directory
7# to [GCMdir]/ioipsl to get it out of svn
8# then go to [GCMdir]/ioipsl before doing all the following commands.
9
10rm -rf lib
11mkdir lib
12mkdir modeles
13
14### 1. Get IOIPSL (via modipsl) and compile it
15cd util
16## get IOIPSL
17./model IOIPSL
18
19## 2. Set correct settings
20# modify path to netcdf in 'AA_make.gdef'
21cp AA_make.gdef AA_make.gdef.old
22sed -e s:"linux    NCDF_INC = /distrib/local/netcdf/pgf/include/":"linux    NCDF_INC = /opt/netcdf/pgf/include/":1 \
23    -e s:"linux    NCDF_LIB = -L/distrib/local/netcdf/pgf/lib/":"linux    NCDF_LIB = -L/opt/netcdf/pgf/lib/":1 \
24    AA_make.gdef.old > AA_make.gdef
25ins_make -t linux -p I4R8
26## 3. build ioipsl:
27cd ../modeles/IOIPSL/src
28make
29
30rm -rf modeles
31
32exit
Note: See TracBrowser for help on using the repository browser.