source: trunk/LMDZ.COMMON/ioipsl/install_ioipsl_gfortran.bash @ 1306

Last change on this file since 1306 was 1245, checked in by aslmd, 11 years ago

LMDZ.COMMON. added support for gfortran. corrected cyclic dependency with moyzon.

  • Property svn:executable set to *
File size: 1.2 KB
RevLine 
[456]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
[1245]7setfolder="/home/aymeric/Science/MODELES/LMDZ.COMMON/netcdf/gfortran_netcdf-4.0.1"
8#setfolder="/donnees/emlmd/netcdf64-4.0.1_gfortran/"
9
[456]10#0. Preliminary stuff
11# netcdf include and lib dirs:
[1245]12netcdf_include=$setfolder"/include"
13netcdf_lib=$setfolder"/lib"
[456]14
15whereami=`pwd -P`
16
17# 1. Get IOIPSL (via modipsl)
18svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl
19cd modipsl/util
20
21./model IOIPSL
22
23# 2. Set correct settings:
24# modify path to netcdf in 'AA_make.gdef'
25cp AA_make.gdef AA_make.gdef.old
26sed -e s:"gfortran  NCDF_INC = /usr/local/include":"gfortran  NCDF_INC = ${netcdf_include}":1 \
27    -e s:"gfortran  NCDF_LIB = -L/usr/local/lib":"gfortran  NCDF_LIB = -L${netcdf_lib}":1 \
28    AA_make.gdef.old > AA_make.gdef
29
30# set default working precision for IOIPSL:
31./ins_make -t gfortran -p I4R8
32
33## 3. build ioipsl:
34cd ../modeles/IOIPSL/src
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.