source: trunk/mesoscale/LMD_MM_MARS/prepare @ 16

Last change on this file since 16 was 15, checked in by aslmd, 14 years ago

spiga:mineur

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