source: trunk/LMDZ.COMMON/ioipsl/install_ioipsl_gfortran-gcc.bash @ 2052

Last change on this file since 2052 was 2052, checked in by jleconte, 6 years ago

12/12/2018 == JL

  • Add new arch files to compile gcm and ioipsl on MCIA (Bordeaux computing center AVAKAS) with gcc.
  • Property svn:executable set to *
File size: 1.3 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#setfolder="/cm/shared/apps/netcdf/gcc/64/4.1.1"
8#setfolder="/donnees/emlmd/netcdf64-4.0.1_gfortran/"
9
10#0. Preliminary stuff
11# netcdf include and lib dirs:
12#netcdf_include=$setfolder"/include"
13#netcdf_lib=$setfolder"/lib"
14netcdf_include="$NETCDFINCLUDE"
15netcdf_lib="$NETCDFDIR"
16echo $netcdf_include
17echo $netcdf_lib
18
19whereami=`pwd -P`
20
21# 1. Get IOIPSL (via modipsl)
22svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl
23cd modipsl/util
24
25./model IOIPSL_PLUS
26
27# 2. Set correct settings:
28# modify path to netcdf in 'AA_make.gdef'
29cp AA_make.gdef AA_make.gdef.old
30sed -e s:"gfortran  NCDF_INC = /usr/local/include":"gfortran  NCDF_INC = ${netcdf_include}":1 \
31    -e s:"gfortran  NCDF_LIB = -L/usr/local/lib -lnetcdf":"gfortran  NCDF_LIB = -L${netcdf_lib} -lnetcdf -lnetcdff":1 \
32    AA_make.gdef.old > AA_make.gdef
33
34# set default working precision for IOIPSL:
35./ins_make -t gfortran -p I4R8
36
37## 3. build ioipsl:
38cd ../modeles/IOIPSL/src
39make
40## Compile the rebuild tool:
41cd ../tools
42make
43
44if [[ -f ${whereami}/modipsl/lib/libioipsl.a ]] 
45  then
46  echo "OK: ioipsl library is in ${whereami}/modipsl/lib"
47else
48  echo "Something went wrong..."
49fi
50
Note: See TracBrowser for help on using the repository browser.