source: trunk/mesoscale/LMD_MM_MARS/prepare_ini @ 13

Last change on this file since 13 was 11, checked in by aslmd, 14 years ago

spiga@svn-planeto:ajoute le modele meso-echelle martien

  • Property svn:executable set to *
File size: 2.0 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
10if [[ "${LMDMOD}" = "" ]]
11then
12    echo "No LMDMOD defined...assuming default folders"
13    LMDMOD=$PWD"/../.."
14fi
15
16
17###############
18tmpdir=$LMDMOD/TMPDIR
19lmdmeso=$LMDMOD/LMD_MM_MARS
20sourceprepmars=$lmdmeso"/SRC/PREP_MARS"
21sourcewps=$lmdmeso"/SRC/WPS"
22###############
23
24echo create tmpdir directories
25mkdir $tmpdir/WPSFEED 2> /dev/null
26mkdir $tmpdir/WRFFEED 2> /dev/null
27#mkdir $tmpdir/WRFFEED/current 2> /dev/null
28mkdir $tmpdir/GCMINI 2> /dev/null
29
30here=$PWD
31\rm -rf $here/PREP_MARS $here/WPS 2> /dev/null
32
33echo link PREP_MARS in $here
34
35mkdir $here/PREP_MARS
36cd $here/PREP_MARS
37ln -sf ${sourceprepmars}/* .
38ln -sf $tmpdir/WPSFEED .
39ln -sf $tmpdir/GCMINI/diagfi.nc input_diagfi.nc
40cd $here
41
42echo prepare WPS in $here
43
44cd ${sourcewps}
45cp ${sourcewps}/wps_mars/switch_WPS_Mars ${sourcewps}
46./switch_WPS_Mars
47
48cd ${here}
49mkdir $here/WPS
50cd ${here}/WPS
51ln -sf ${sourcewps}/compile .
52ln -sf ${sourcewps}/configure .
53ln -sf ${sourcewps}/clean .
54ln -sf ${sourcewps}/arch .
55ln -sf $tmpdir/WPSFEED .
56ln -sf $tmpdir/WRFFEED .
57
58mkdir ${here}/WPS/geogrid
59cd ${here}/WPS/geogrid
60cp -f ${sourcewps}/geogrid/GEOGRID.TBL.ARW GEOGRID.TBL
61cp -f ${sourcewps}/geogrid/Makefile .
62mkdir src
63cd src
64ln -sf ${sourcewps}/geogrid/src/* .
65cd ${here}/WPS 
66
67mkdir ${here}/WPS/metgrid
68cd ${here}/WPS/metgrid
69cp -f ${sourcewps}/metgrid/METGRID.TBL.ARW METGRID.TBL
70cp -f ${sourcewps}/metgrid/Makefile .
71mkdir src
72cd src
73ln -sf ${sourcewps}/metgrid/src/* .
74cd ${here}/WPS
75
76#
77# examples and plots
78#
79ln -sf ${sourcewps}/wps_mars/out_geo.pro .
80ln -sf ${sourcewps}/wps_mars/namelist.wps* .
81#ln -sf ${lmdmeso}/SRC/ARWpost/idl/colorbar__define.pro .
82ln -sf ${lmdmeso}/SRC/ARWpost/idl/colorbar.pro .
83ln -sf ${lmdmeso}/SRC/ARWpost/idl/map_latlon.pro .
84
85#
86# link to static data
87#
88ln -sf ${lmdmeso}/WPS_GEOG .
89
90exit
91
92
Note: See TracBrowser for help on using the repository browser.