source: trunk/MESOSCALE/LMD_MM_MARS/SRC/SCRIPTS/copy_model @ 309

Last change on this file since 309 was 236, checked in by aslmd, 13 years ago

MESOSCALE: a commit to allow one to easily work on several clusters with a minimum amount of changes to the script files or includes. basically one has just to edit MESOSCALE/LMD_MM_MARS/SRC/WRFV2/meso_datafile.h for runs with old physics, and add a link to the GCM start database (if not done, there is now a warning in launch_gcm anyway

  • Property svn:executable set to *
File size: 4.9 KB
Line 
1#! /bin/bash
2
3
4echo '*** linking sources from ...'
5WRFSRC=$PWD/SRC/
6echo $WRFSRC
7echo '*** to ...'
8HERE=$PWD
9echo $HERE
10
11
12#mkdir WPS
13#cd WPS
14#ln -sf $WRFSRC/WPS/wps_mars .
15#ln -sf $WRFSRC/WPS/switch_WPS_Mars .
16#cd ..
17
18mkdir zeWRFV2
19#ln -sf $WRFSRC/prepare_ini .
20cd zeWRFV2
21
22echo '*** start defining folders and links'
23ln -sf $WRFSRC/WRFV2/clean .
24ln -sf $WRFSRC/WRFV2/compile .
25#ln -sf $WRFSRC/WRFV2/makemeso .
26ln -sf $WRFSRC/WRFV2/configure .
27ln -sf $WRFSRC/WRFV2/Makefile .
28ln -sf $WRFSRC/WRFV2/mars.sed* .
29ln -sf $WRFSRC/WRFV2/*.h .
30ln -sf $WRFSRC/WRFV2/configure.defaults.* .
31ln -sf $WRFSRC/WRFV2/call_meso_inifis?.inc .
32ln -sf $WRFSRC/WRFV2/call_meso_physiq?.inc .
33
34#\rm meso_dimphys.h
35#cp $WRFSRC/WRFV2/meso_dimphys.h .
36#cp $WRFSRC/WRFV2/call_*.inc .
37#cp $WRFSRC/WRFV2/custom*.inc .
38mkdir Registry
39ln -sf $WRFSRC/WRFV2/Registry/* Registry/
40  ### this is to allow one to change Registry somewhere without it being changed everywhere !
41  rm Registry/Registry.EM
42  cp $WRFSRC/WRFV2/Registry/Registry.EM Registry/
43mkdir arch
44ln -sf $WRFSRC/WRFV2/arch/* arch/
45mkdir dyn_em
46ln -sf $WRFSRC/WRFV2/dyn_em/* dyn_em/
47mkdir dyn_exp
48ln -sf $WRFSRC/WRFV2/dyn_exp/* dyn_exp/
49mkdir dyn_nmm
50ln -sf $WRFSRC/WRFV2/dyn_nmm/* dyn_nmm/
51mkdir frame
52ln -sf $WRFSRC/WRFV2/frame/* frame/
53mkdir inc
54ln -sf $WRFSRC/WRFV2/inc/* inc/
55mkdir main
56ln -sf $WRFSRC/WRFV2/main/* main/
57mkdir phys
58ln -sf $WRFSRC/WRFV2/phys/* phys/
59mkdir run
60ln -sf $WRFSRC/WRFV2/run/* run/
61mkdir share
62ln -sf $WRFSRC/WRFV2/share/* share/
63mkdir tools
64ln -sf $WRFSRC/WRFV2/tools/* tools/
65\rm tools/DOMAIN_TIME_TEST
66\rm tools/CodeBase
67mkdir tools/DOMAIN_TIME_TEST
68ln -sf $WRFSRC/WRFV2/tools/DOMAIN_TIME_TEST/* tools/DOMAIN_TIME_TEST/
69mkdir tools/CodeBase
70ln -sf $WRFSRC/WRFV2/tools/CodeBase/* tools/CodeBase/
71mkdir external
72ln -sf $WRFSRC/WRFV2/external/Makefile external/
73mkdir external/io_int
74ln -sf $WRFSRC/WRFV2/external/io_int/* external/io_int/
75mkdir external/esmf_time_f90
76ln -sf $WRFSRC/WRFV2/external/esmf_time_f90/* external/esmf_time_f90/
77mkdir external/io_netcdf
78ln -sf $WRFSRC/WRFV2/external/io_netcdf/* external/io_netcdf/
79mkdir external/io_grib1
80ln -sf $WRFSRC/WRFV2/external/io_grib1/* external/io_grib1/
81\rm external/io_grib1/MEL_grib1
82\rm external/io_grib1/WGRIB
83\rm external/io_grib1/build
84\rm external/io_grib1/grib1_util
85mkdir external/io_grib1/MEL_grib1
86ln -sf $WRFSRC/WRFV2/external/io_grib1/MEL_grib1/* external/io_grib1/MEL_grib1/
87mkdir external/io_grib1/WGRIB
88ln -sf $WRFSRC/WRFV2/external/io_grib1/WGRIB/* external/io_grib1/WGRIB/
89mkdir external/io_grib1/grib1_util
90ln -sf $WRFSRC/WRFV2/external/io_grib1/grib1_util/* external/io_grib1/grib1_util/
91mkdir external/io_grib1/build
92mkdir external/io_grib_share
93ln -sf $WRFSRC/WRFV2/external/io_grib_share/* external/io_grib_share/
94\rm external/io_grib_share/build
95mkdir external/io_grib_share/build
96ln -sf $WRFSRC/WRFV2/external/io_grib_share/build/* external/io_grib_share/build/
97mkdir external/ioapi_share
98ln -sf $WRFSRC/WRFV2/external/ioapi_share/* external/ioapi_share/
99mkdir external/io_phdf5
100ln -sf $WRFSRC/WRFV2/external/io_phdf5/* external/io_phdf5/
101mkdir external/RSL_LITE
102ln -sf $WRFSRC/WRFV2/external/RSL_LITE/* external/RSL_LITE/
103mkdir external/io_grib2
104ln -sf $WRFSRC/WRFV2/external/io_grib2/* external/io_grib2/
105\rm external/io_grib2/bacio-1.3
106\rm external/io_grib2/g2lib
107mkdir external/io_grib2/bacio-1.3
108ln -sf $WRFSRC/WRFV2/external/io_grib2/bacio-1.3/* external/io_grib2/bacio-1.3/
109mkdir external/io_grib2/g2lib
110ln -sf $WRFSRC/WRFV2/external/io_grib2/g2lib/* external/io_grib2/g2lib/
111mkdir external/io_pnetcdf
112ln -sf $WRFSRC/WRFV2/external/io_pnetcdf/* external/io_pnetcdf/
113mkdir external/RSL
114ln -sf $WRFSRC/WRFV2/external/RSL/* external/RSL/
115\rm external/RSL/RSL
116mkdir external/RSL/RSL
117ln -sf $WRFSRC/WRFV2/external/RSL/RSL/* external/RSL/RSL/
118mkdir external/io_esmf
119ln -sf $WRFSRC/WRFV2/external/io_esmf/* external/io_esmf/
120mkdir external/io_mcel
121ln -sf $WRFSRC/WRFV2/external/io_mcel/* external/io_mcel/
122mkdir mars_lmd
123mkdir mars_lmd/libf
124ln -sf $WRFSRC/WRFV2/mars_lmd/makegcm* mars_lmd/
125ln -sf $WRFSRC/WRFV2/mars_lmd/create_make_gcm mars_lmd/
126#ln -sf $WRFSRC/WRFV2/mars_lmd/makefile mars_lmd/
127ln -sf $WRFSRC/WRFV2/mars_lmd/libf/duplicate* mars_lmd/libf/
128ln -sf $WRFSRC/WRFV2/mars_lmd/libf/generate* mars_lmd/libf/
129
130mkdir mars_lmd/libf/grid
131ln -sf $WRFSRC/WRFV2/mars_lmd/libf/grid/* mars_lmd/libf/grid/
132mkdir mars_lmd/libf/phymars
133ln -sf $WRFSRC/WRFV2/mars_lmd/libf/phymars/* mars_lmd/libf/phymars/
134mkdir mars_lmd/libf/dyn3d
135ln -sf $WRFSRC/WRFV2/mars_lmd/libf/dyn3d/* mars_lmd/libf/dyn3d/
136mkdir mars_lmd/libf/aeronomars
137ln -sf $WRFSRC/WRFV2/mars_lmd/libf/aeronomars/* mars_lmd/libf/aeronomars/
138mkdir mars_lmd/libf/bibio
139ln -sf $WRFSRC/WRFV2/mars_lmd/libf/bibio/* mars_lmd/libf/bibio/
140mkdir mars_lmd/libo
141#touch mars_lmd/makefile
142
143mkdir test
144mkdir test/em_real
145mkdir test/em_quarter_ss
146ln -sf $WRFSRC/WRFV2/test/em_real/* test/em_real/
147
148cd mars_lmd/libf/phymars/
149\rm dimphys.h
150#ln -sf ../../../meso_dimphys.h dimphys.h
151cd ../../..
152
153echo '*** end'
154
155
156
157
Note: See TracBrowser for help on using the repository browser.