source: trunk/MESOSCALE/LMD_MM_MARS/prepare_ini @ 144

Last change on this file since 144 was 88, checked in by aslmd, 14 years ago

LMD_MM_MARS: correction bug scripts d'installation des routines d'initialisation

  • Property svn:executable set to *
File size: 2.3 KB
Line 
1#! /bin/bash
2
3#---------------------------------------#
4# A script to install the preproc tools #
5#---------------------------------------#
6# Author: Aymeric Spiga - November 2008 #
7#---------------------------------------#
8
9
10echo "If you use new physics, few modifications will be needed"
11
12
13if [[ "${LMDMOD}" = "" ]]
14then
15    echo "No LMDMOD defined...assuming default folders"
16    LMDMOD=$PWD"/../.."
17fi
18
19
20###############
21tmpdir=$LMDMOD/TMPDIR
22lmdmeso=$LMDMOD/LMD_MM_MARS
23sourceprepmars=$lmdmeso"/SRC/PREP_MARS"
24sourcewps=$lmdmeso"/SRC/WPS"
25###############
26
27echo create tmpdir directories
28mkdir $tmpdir/WPSFEED 2> /dev/null
29mkdir $tmpdir/WRFFEED 2> /dev/null
30#mkdir $tmpdir/WRFFEED/current 2> /dev/null
31mkdir $tmpdir/GCMINI 2> /dev/null
32
33here=$PWD
34\rm -rf $here/PREP_MARS $here/WPS 2> /dev/null
35
36echo link PREP_MARS in $here
37
38mkdir $here/PREP_MARS
39cd $here/PREP_MARS
40ln -sf ${sourceprepmars}/* .
41ln -sf $tmpdir/WPSFEED .
42ln -sf $tmpdir/GCMINI/diagfi.nc input_diagfi.nc
43cd $here
44
45echo prepare WPS in $here
46
47        ####### done in prepare
48        ###cd ${sourcewps}
49        ###cp ${sourcewps}/wps_mars/switch_WPS_Mars ${sourcewps}
50        ###./switch_WPS_Mars
51
52cd ${here}
53mkdir $here/WPS
54cd ${here}/WPS
55ln -sf ${sourcewps}/compile .
56ln -sf ${sourcewps}/configure .
57ln -sf ${sourcewps}/clean .
58ln -sf ${sourcewps}/arch .
59ln -sf $tmpdir/WPSFEED .
60ln -sf $tmpdir/WRFFEED .
61
62mkdir ${here}/WPS/geogrid
63cd ${here}/WPS/geogrid
64        #cp -f ${sourcewps}/geogrid/GEOGRID.TBL.ARW GEOGRID.TBL
65        #echo "attention GEOGRID.TBL n est pas le bon !!!!"
66ln -sf ${sourcewps}/wps_mars/geogrid/GEOGRID.TBL.ARW_Mars GEOGRID.TBL
67cp -f ${sourcewps}/geogrid/Makefile .
68mkdir src
69cd src
70ln -sf ${sourcewps}/geogrid/src/* . 
71cd ${here}/WPS 
72
73mkdir ${here}/WPS/metgrid
74cd ${here}/WPS/metgrid
75        #cp -f ${sourcewps}/metgrid/METGRID.TBL.ARW METGRID.TBL
76        #echo "attention METGRID.TBL n est pas le bon !!!!"
77ln -sf ${sourcewps}/wps_mars/metgrid/METGRID.TBL.ARW_MarsBase_newphys METGRID.TBL
78cp -f ${sourcewps}/metgrid/Makefile .
79mkdir src
80cd src
81ln -sf ${sourcewps}/metgrid/src/* .
82cd ${here}/WPS
83
84##
85## examples and plots
86##
87#ln -sf ${sourcewps}/wps_mars/out_geo.pro .
88ln -sf ${sourcewps}/wps_mars/namelist.wps* .
89#ln -sf ${lmdmeso}/SRC/ARWpost/idl/colorbar__define.pro .
90#ln -sf ${lmdmeso}/SRC/ARWpost/idl/colorbar.pro .
91#ln -sf ${lmdmeso}/SRC/ARWpost/idl/map_latlon.pro .
92
93#
94# link to static data
95#
96ln -sf ${lmdmeso}/WPS_GEOG .
97
98exit
99
100
Note: See TracBrowser for help on using the repository browser.