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: |
---|
9 | netcdf_include="/donnees/emlmd/netcdf64-4.0.1_pgi/include" |
---|
10 | netcdf_lib="/donnees/emlmd/netcdf64-4.0.1_pgi/lib" |
---|
11 | |
---|
12 | whereami=`pwd -P` |
---|
13 | |
---|
14 | # 1. Get IOIPSL (via modipsl) |
---|
15 | svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl |
---|
16 | cd modipsl/util |
---|
17 | |
---|
18 | ./model IOIPSL_PLUS |
---|
19 | |
---|
20 | # 2. Set correct settings: |
---|
21 | # modify path to netcdf in 'AA_make.gdef' |
---|
22 | cp AA_make.gdef AA_make.gdef.old |
---|
23 | sed -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: |
---|
31 | cd ../modeles/IOIPSL/src |
---|
32 | make |
---|
33 | ## Compile the rebuild tool: |
---|
34 | cd ../tools |
---|
35 | make |
---|
36 | |
---|
37 | if [[ -f ${whereami}/modipsl/lib/libioipsl.a ]] |
---|
38 | then |
---|
39 | echo "OK: ioipsl library is in ${whereami}/modipsl/lib" |
---|
40 | else |
---|
41 | echo "Something went wrong..." |
---|
42 | fi |
---|
43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.