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: |
---|
8 | host=$(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 |
---|
12 | if [[ $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' |
---|
15 | elif [[ $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' |
---|
18 | else |
---|
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 |
---|
22 | fi |
---|
23 | # now get to wrok |
---|
24 | # check out modipsl |
---|
25 | svn -r2728 co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl |
---|
26 | cd modipsl/util |
---|
27 | ./model ORCHIDEE_trunk |
---|
28 | cd ../modeles |
---|
29 | # remove ORCHIDEE(trunk), IOIPSL and XIOS... |
---|
30 | rm -fr ORCHIDEE IOIPSL XIOS |
---|
31 | # .. and replace with ORCHIDEE-CN-P and another IOIPSL |
---|
32 | svn co svn://forge.ipsl.jussieu.fr/orchidee/branches/ORCHIDEE-CN-P/ORCHIDEE ORCHIDEE |
---|
33 | svn co svn://forge.ipsl.jussieu.fr/orchidee/branches/ORCHIDEE-MICT/IOIPSL IOIPSL |
---|
34 | svn co https://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/trunk XIOS |
---|
35 | # ajust IOIPSL |
---|
36 | cd IOIPSL/src |
---|
37 | ../../../util/ins_make |
---|
38 | sed -i "s/F_O =.*/$f0/g" Makefile |
---|
39 | #then |
---|
40 | gmake |
---|
41 | # get the CNP adjusted libIGCM configurations |
---|
42 | cd ../../../config/ |
---|
43 | rm -fr ORCHIDEE_OL |
---|
44 | svn co svn://forge.ipsl.jussieu.fr/orchidee/branches/ORCHIDEE-CN-P/ORCHIDEE_OL ORCHIDEE_OL |
---|
45 | cd ../util ; ./ins_make |
---|
46 | |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | |
---|