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: |
---|
9 | netcdf_include="/donnees/emlmd/netcdf64-4.0.1_gfortran/include" |
---|
10 | netcdf_lib="/donnees/emlmd/netcdf64-4.0.1_gfortran/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 |
---|
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:"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: |
---|
31 | cd ../modeles/IOIPSL/src |
---|
32 | make |
---|
33 | |
---|
34 | if [[ -f ${whereami}/modipsl/lib/libioipsl.a ]] |
---|
35 | then |
---|
36 | echo "OK: ioipsl library is in ${whereami}/modipsl/lib" |
---|
37 | else |
---|
38 | echo "Something went wrong..." |
---|
39 | fi |
---|
40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.