source: trunk/mesoscale/LMD_MM_MARS/prepare_ini @ 87

Last change on this file since 87 was 78, checked in by aslmd, 14 years ago

LMDZ.MARS
-- datafile.h pointe par defaut vers un dossier datafile situe dans le repertoire ou on lance le run
-- ... ainsi il suffit d'utiliser un lien symbolique [ou alors, datadir dans callphys.def]
-- ... y penser pour les prochains runs GCM ...

LMD_MM_MARS
-- callphys.def pour traceurs radiativement actifs dans TESTS/newphys_tracers [callphys.def.mars11_radact]
-- adaptation makegcm_mpifort et makegcm_ifort pour nouvelle physique
-- adaptation runmeso et gnome_launch.meso pour que le lien vers datafile existe toujours
-- commentaire sur prepare_ini pour indiquer probleme a regler

  • Property svn:executable set to *
File size: 2.2 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
64cp -f ${sourcewps}/geogrid/GEOGRID.TBL.ARW GEOGRID.TBL
65echo "attention GEOGRID.TBL n est pas le bon !!!!"
66cp -f ${sourcewps}/geogrid/Makefile .
67mkdir src
68cd src
69ln -sf ${sourcewps}/geogrid/src/* . 
70cd ${here}/WPS 
71
72mkdir ${here}/WPS/metgrid
73cd ${here}/WPS/metgrid
74cp -f ${sourcewps}/metgrid/METGRID.TBL.ARW METGRID.TBL
75echo "attention METGRID.TBL n est pas le bon !!!!"
76cp -f ${sourcewps}/metgrid/Makefile .
77mkdir src
78cd src
79ln -sf ${sourcewps}/metgrid/src/* .
80cd ${here}/WPS
81
82#
83# examples and plots
84#
85ln -sf ${sourcewps}/wps_mars/out_geo.pro .
86ln -sf ${sourcewps}/wps_mars/namelist.wps* .
87#ln -sf ${lmdmeso}/SRC/ARWpost/idl/colorbar__define.pro .
88ln -sf ${lmdmeso}/SRC/ARWpost/idl/colorbar.pro .
89ln -sf ${lmdmeso}/SRC/ARWpost/idl/map_latlon.pro .
90
91#
92# link to static data
93#
94ln -sf ${lmdmeso}/WPS_GEOG .
95
96exit
97
98
Note: See TracBrowser for help on using the repository browser.