source: trunk/MESOSCALE/LMD_MM_MARS/SRC/SCRIPTS/prepare_offline @ 250

Last change on this file since 250 was 216, checked in by aslmd, 13 years ago

MESOSCALE: added some cleanup so that no mistake can be made by the user with prepare or copy_model scripts.

  • Property svn:executable set to *
File size: 1.8 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
15cp -f ../../dl.tar.gz .
16
17mv ../g95.tar.gz .
18mv ../mac.tar.gz .
19mv ../datesave .
20mv ../saved .
21mv ../INIT_SIMPLE_TEST.tar.gz .
22
23###########################
24gunzip dl.tar.gz
25tar xf dl.tar
26cp -rf dl/* .
27rm -rf dl
28rm -rf dl.tar
29###########################
30
31echo 1/8 get WRF sources
32gunzip  WRFV2.2.TAR.gz  > /dev/null
33tar xf  WRFV2.2.TAR     > /dev/null
34\rm     WRFV2.2.TAR
35## patch
36mv -f rsl_bcast.c WRFV2/external/RSL_LITE/
37mv -f solve_em.F.fix WRFV2/dyn_em/solve_em.F
38## patch
39
40echo 2/8 get WPS sources
41gunzip  WPSV2.2.TAR.gz  > /dev/null
42tar xf  WPSV2.2.TAR     > /dev/null
43\rm     WPSV2.2.TAR
44
45echo 3/8 get WRF modified Martian sources
46mv ../sources_Mars.tar.gz .
47gunzip  sources_Mars.tar.gz  > /dev/null
48tar xf  sources_Mars.tar     > /dev/null
49cp -rf save/* WRFV2/
50\rm -rf save
51\rm     sources_Mars.tar
52
53echo 4/8 get WPS modified Martian sources
54mv ../WPS.tar.gz .
55gunzip  WPS.tar.gz  > /dev/null
56tar xf  WPS.tar     > /dev/null
57\rm     WPS.tar
58
59echo 5/8 get ARWpost for Mars
60mv ../ARWpost.tar.gz .
61gunzip  ARWpost.tar.gz  > /dev/null
62tar xf  ARWpost.tar     > /dev/null
63\rm     ARWpost.tar
64
65echo 6/8 get PREP_MARS
66mv ../PREP_MARS.tar.gz .
67gunzip  PREP_MARS.tar.gz  > /dev/null
68tar xf  PREP_MARS.tar     > /dev/null
69\rm     PREP_MARS.tar
70
71cd ..
72
73echo 7/8 get surface data utilities
74gunzip  WPS_GEOG.tar.gz  > /dev/null
75tar xf  WPS_GEOG.tar     > /dev/null
76mv SRC/dust_tes.nc WPS_GEOG/
77\rm     WPS_GEOG.tar
78
79echo 8/8 get run utilies
80gunzip  SIMU.tar.gz      > /dev/null
81tar xf  SIMU.tar         > /dev/null
82\rm     SIMU.tar
83
84echo ok
Note: See TracBrowser for help on using the repository browser.