DevelopmentActivities/ORCHIDEE-CNP/howtoFLUXNET: get_ORCNP.ksh

File get_ORCNP.ksh, 1.7 KB (added by dgoll, 7 years ago)
Line 
1#!/bin/ksh
2# DSG
3# this scripts get ORCHIDEE-CN-P and does all the adjustments for you
4# which are needed and
5# documented here: https://forge.ipsl.jussieu.fr/orchidee/wiki/DevelopmentActivities/ORCHIDEE-CNP/howtoUse
6
7# check which machine:
8host=$(hostname)
9
10# the Makefile for IOIPSL needs to ab adjusted to the machine
11# first check if we  have the information for this machine
12if [[ $host == 'curie90' ]]; then
13 echo $host
14 f0='F_O = -DCPP_PARA -O3 -xAVX -align all -align array32byte $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR) -fp-model precise'
15elif [[ $host == 'obelix5' ]]; then
16 echo $host
17 f0='F_O = -DCPP_PARA -O3 -align all $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR) -fp-model precise'
18else
19 echo 'configuration for ' $host ' not known'
20 echo 'find it here https://forge.ipsl.jussieu.fr/orchidee/wiki/DevelopmentActivities/Branches/ORCHIDEE-MICT-IMBALANCE-P/Compile#After8.4.0rev4057'
21 exit
22fi
23# now get to wrok
24# check out modipsl
25svn -r2728 co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl
26cd modipsl/util
27./model ORCHIDEE_trunk
28cd ../modeles
29# remove ORCHIDEE(trunk), IOIPSL and XIOS...
30rm -fr ORCHIDEE IOIPSL XIOS
31# .. and replace with ORCHIDEE-CN-P and another IOIPSL
32svn co svn://forge.ipsl.jussieu.fr/orchidee/branches/ORCHIDEE-CN-P/ORCHIDEE ORCHIDEE
33svn co svn://forge.ipsl.jussieu.fr/orchidee/branches/ORCHIDEE-MICT/IOIPSL IOIPSL
34svn co https://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/trunk XIOS
35# ajust IOIPSL
36cd IOIPSL/src
37../../../util/ins_make
38sed -i "s/F_O =.*/$f0/g" Makefile
39#then
40gmake
41# get the CNP adjusted libIGCM configurations
42cd ../../../config/
43rm -fr ORCHIDEE_OL
44svn co svn://forge.ipsl.jussieu.fr/orchidee/branches/ORCHIDEE-CN-P/ORCHIDEE_OL ORCHIDEE_OL
45cd ../util ; ./ins_make
46
47
48
49
50
51