1 | #! /bin/bash |
---|
2 | |
---|
3 | #---------------------------------------# |
---|
4 | # A script to install the model # |
---|
5 | #---------------------------------------# |
---|
6 | # Author: Aymeric Spiga - November 2008 # |
---|
7 | #---------------------------------------# |
---|
8 | |
---|
9 | |
---|
10 | touch download_log |
---|
11 | |
---|
12 | mkdir SRC |
---|
13 | cd SRC/ |
---|
14 | |
---|
15 | mv ../g95.tar.gz . |
---|
16 | mv ../mac.tar.gz . |
---|
17 | mv ../datesave . |
---|
18 | mv ../saved . |
---|
19 | mv ../INIT_SIMPLE_TEST.tar.gz . |
---|
20 | mv ../POSTPROC.tar.gz . |
---|
21 | |
---|
22 | echo 1/8 get WRF sources |
---|
23 | wget http://www.mmm.ucar.edu/wrf/src/WRFV2.2.TAR.gz . >> ../download_log 2>> ../download_log |
---|
24 | tar xzvf WRFV2.2.TAR.gz > /dev/null |
---|
25 | \rm WRFV2.2.TAR.gz |
---|
26 | ## patch |
---|
27 | wget http://www.mmm.ucar.edu/wrf/src/fix/rsl_bcast.c . >> ../download_log 2>> ../download_log |
---|
28 | mv -f rsl_bcast.c WRFV2/external/RSL_LITE/ |
---|
29 | wget http://www.mmm.ucar.edu/wrf/src/fix/solve_em.F.fix . >> ../download_log 2>> ../download_log |
---|
30 | mv -f solve_em.F.fix WRFV2/dyn_em/solve_em.F |
---|
31 | ## patch |
---|
32 | |
---|
33 | echo 2/8 get WPS sources |
---|
34 | wget wget http://www.mmm.ucar.edu/wrf/src/WPSV2.2.TAR.gz . >> ../download_log 2>> ../download_log |
---|
35 | tar xzvf WPSV2.2.TAR.gz > /dev/null |
---|
36 | \rm WPSV2.2.TAR.gz |
---|
37 | |
---|
38 | echo 3/8 get WRF modified Martian sources |
---|
39 | mv ../sources_Mars.tar.gz . |
---|
40 | tar xzvf sources_Mars.tar.gz > /dev/null |
---|
41 | cp -rf save/* WRFV2/ |
---|
42 | \rm -rf save |
---|
43 | \rm sources_Mars.tar.gz |
---|
44 | |
---|
45 | echo 4/8 get WPS modified Martian sources |
---|
46 | mv ../WPS.tar.gz . |
---|
47 | tar xzvf WPS.tar.gz > /dev/null |
---|
48 | cd WPS |
---|
49 | #cp -f /donnees/aslmd/WRF/SRC/WPS/wps_mars/switch_WPS_Mars . |
---|
50 | ./switch_WPS_Mars |
---|
51 | cd .. |
---|
52 | \rm WPS.tar.gz |
---|
53 | |
---|
54 | echo 5/8 get ARWpost for Mars |
---|
55 | mv ../ARWpost.tar.gz . |
---|
56 | tar xzvf ARWpost.tar.gz > /dev/null |
---|
57 | \rm ARWpost.tar.gz |
---|
58 | |
---|
59 | echo 6/8 get PREP_MARS |
---|
60 | mv ../PREP_MARS.tar.gz . |
---|
61 | tar xzvf PREP_MARS.tar.gz > /dev/null |
---|
62 | \rm PREP_MARS.tar.gz |
---|
63 | |
---|
64 | cd .. |
---|
65 | |
---|
66 | echo 7/8 get surface data utilities |
---|
67 | tar xzvf WPS_GEOG.tar.gz > /dev/null |
---|
68 | wget http://web.lmd.jussieu.fr/~forget/datagcm/datafile/dust_tes.nc . >> ./download_log 2>> ./download_log |
---|
69 | mv dust_tes.nc WPS_GEOG/ |
---|
70 | \rm WPS_GEOG.tar.gz |
---|
71 | |
---|
72 | echo 8/8 get run utilies |
---|
73 | tar xzvf SIMU.tar.gz > /dev/null |
---|
74 | \rm SIMU.tar.gz |
---|
75 | |
---|
76 | echo ok |
---|