source: trunk/LMDZ.COMMON/ioipsl/install_ioipsl_jeanzay_pgi.bash @ 2338

Last change on this file since 2338 was 2256, checked in by emillour, 5 years ago

Common dynamics:
Add scripts and arch files to use the GCM with the PGI compiler on the Jean-Zay supercomputer.
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 on occigen
3#
4
5#0. Preliminary stuff
6source ../arch/arch-X64_JEANZAY-pgi.env
7module load subversion
8
9
10whereami=`pwd -P`
11
12# 1. Get IOIPSL (via modipsl)
13svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl
14cd modipsl/util
15
16./model IOIPSL_PLUS
17
18# 2. Set correct settings:
19# set default working precision for IOIPSL:
20sed -i -e s:"jeanzay  F_C = mpiifort -c -cpp":"jeanzay  F_C = mpif90 -c -Mpreprocess":1 \
21-e s/'jeanzay  F_O = -DCPP_PARA -O3 $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR) -fp-model precise'/'jeanzay  F_O = -DCPP_PARA -fast -O3 -Munroll=c:4 $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)'/1 \
22-e s:'jeanzay  NCDF_INC = ./':"jeanzay  NCDF_INC = $(nf-config --includedir)":1 \
23-e s:'jeanzay  NCDF_LIB = -lnetcdff':"jeanzay  NCDF_LIB = $(nf-config --flibs)":1 \
24-e s:"jeanzay  F_L = mpiifort":"jeanzay  F_L = mpif90":1 AA_make.gdef
25
26./ins_make -t jeanzay -p I4R8
27
28## 3. build ioipsl:
29cd ../modeles/IOIPSL/src
30gmake
31## Compile the rebuild tool:
32cd ../tools
33gmake
34
35if [[ -f ${whereami}/modipsl/lib/libioipsl.a ]] 
36  then
37  echo "OK: ioipsl library is in ${whereami}/modipsl/lib"
38else
39  echo "Something went wrong..."
40fi
Note: See TracBrowser for help on using the repository browser.