source: trunk/MESOSCALE/LMD_MM_MARS/SRC/copy_model @ 215

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

MESOSCALE: corrected an installation bug that has bad bad consequences at compilation! hence revision 207 to 214 are not operational.

  • Property svn:executable set to *
File size: 4.7 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/
40mkdir arch
41ln -sf $WRFSRC/WRFV2/arch/* arch/
42mkdir dyn_em
43ln -sf $WRFSRC/WRFV2/dyn_em/* dyn_em/
44mkdir dyn_exp
45ln -sf $WRFSRC/WRFV2/dyn_exp/* dyn_exp/
46mkdir dyn_nmm
47ln -sf $WRFSRC/WRFV2/dyn_nmm/* dyn_nmm/
48mkdir frame
49ln -sf $WRFSRC/WRFV2/frame/* frame/
50mkdir inc
51ln -sf $WRFSRC/WRFV2/inc/* inc/
52mkdir main
53ln -sf $WRFSRC/WRFV2/main/* main/
54mkdir phys
55ln -sf $WRFSRC/WRFV2/phys/* phys/
56mkdir run
57ln -sf $WRFSRC/WRFV2/run/* run/
58mkdir share
59ln -sf $WRFSRC/WRFV2/share/* share/
60mkdir tools
61ln -sf $WRFSRC/WRFV2/tools/* tools/
62\rm tools/DOMAIN_TIME_TEST
63\rm tools/CodeBase
64mkdir tools/DOMAIN_TIME_TEST
65ln -sf $WRFSRC/WRFV2/tools/DOMAIN_TIME_TEST/* tools/DOMAIN_TIME_TEST/
66mkdir tools/CodeBase
67ln -sf $WRFSRC/WRFV2/tools/CodeBase/* tools/CodeBase/
68mkdir external
69ln -sf $WRFSRC/WRFV2/external/Makefile external/
70mkdir external/io_int
71ln -sf $WRFSRC/WRFV2/external/io_int/* external/io_int/
72mkdir external/esmf_time_f90
73ln -sf $WRFSRC/WRFV2/external/esmf_time_f90/* external/esmf_time_f90/
74mkdir external/io_netcdf
75ln -sf $WRFSRC/WRFV2/external/io_netcdf/* external/io_netcdf/
76mkdir external/io_grib1
77ln -sf $WRFSRC/WRFV2/external/io_grib1/* external/io_grib1/
78\rm external/io_grib1/MEL_grib1
79\rm external/io_grib1/WGRIB
80\rm external/io_grib1/build
81\rm external/io_grib1/grib1_util
82mkdir external/io_grib1/MEL_grib1
83ln -sf $WRFSRC/WRFV2/external/io_grib1/MEL_grib1/* external/io_grib1/MEL_grib1/
84mkdir external/io_grib1/WGRIB
85ln -sf $WRFSRC/WRFV2/external/io_grib1/WGRIB/* external/io_grib1/WGRIB/
86mkdir external/io_grib1/grib1_util
87ln -sf $WRFSRC/WRFV2/external/io_grib1/grib1_util/* external/io_grib1/grib1_util/
88mkdir external/io_grib1/build
89mkdir external/io_grib_share
90ln -sf $WRFSRC/WRFV2/external/io_grib_share/* external/io_grib_share/
91\rm external/io_grib_share/build
92mkdir external/io_grib_share/build
93ln -sf $WRFSRC/WRFV2/external/io_grib_share/build/* external/io_grib_share/build/
94mkdir external/ioapi_share
95ln -sf $WRFSRC/WRFV2/external/ioapi_share/* external/ioapi_share/
96mkdir external/io_phdf5
97ln -sf $WRFSRC/WRFV2/external/io_phdf5/* external/io_phdf5/
98mkdir external/RSL_LITE
99ln -sf $WRFSRC/WRFV2/external/RSL_LITE/* external/RSL_LITE/
100mkdir external/io_grib2
101ln -sf $WRFSRC/WRFV2/external/io_grib2/* external/io_grib2/
102\rm external/io_grib2/bacio-1.3
103\rm external/io_grib2/g2lib
104mkdir external/io_grib2/bacio-1.3
105ln -sf $WRFSRC/WRFV2/external/io_grib2/bacio-1.3/* external/io_grib2/bacio-1.3/
106mkdir external/io_grib2/g2lib
107ln -sf $WRFSRC/WRFV2/external/io_grib2/g2lib/* external/io_grib2/g2lib/
108mkdir external/io_pnetcdf
109ln -sf $WRFSRC/WRFV2/external/io_pnetcdf/* external/io_pnetcdf/
110mkdir external/RSL
111ln -sf $WRFSRC/WRFV2/external/RSL/* external/RSL/
112\rm external/RSL/RSL
113mkdir external/RSL/RSL
114ln -sf $WRFSRC/WRFV2/external/RSL/RSL/* external/RSL/RSL/
115mkdir external/io_esmf
116ln -sf $WRFSRC/WRFV2/external/io_esmf/* external/io_esmf/
117mkdir external/io_mcel
118ln -sf $WRFSRC/WRFV2/external/io_mcel/* external/io_mcel/
119mkdir mars_lmd
120mkdir mars_lmd/libf
121ln -sf $WRFSRC/WRFV2/mars_lmd/makegcm* mars_lmd/
122ln -sf $WRFSRC/WRFV2/mars_lmd/create_make_gcm mars_lmd/
123#ln -sf $WRFSRC/WRFV2/mars_lmd/makefile mars_lmd/
124ln -sf $WRFSRC/WRFV2/mars_lmd/libf/duplicate* mars_lmd/libf/
125ln -sf $WRFSRC/WRFV2/mars_lmd/libf/generate* mars_lmd/libf/
126
127mkdir mars_lmd/libf/grid
128ln -sf $WRFSRC/WRFV2/mars_lmd/libf/grid/* mars_lmd/libf/grid/
129mkdir mars_lmd/libf/phymars
130ln -sf $WRFSRC/WRFV2/mars_lmd/libf/phymars/* mars_lmd/libf/phymars/
131mkdir mars_lmd/libf/dyn3d
132ln -sf $WRFSRC/WRFV2/mars_lmd/libf/dyn3d/* mars_lmd/libf/dyn3d/
133mkdir mars_lmd/libf/aeronomars
134ln -sf $WRFSRC/WRFV2/mars_lmd/libf/aeronomars/* mars_lmd/libf/aeronomars/
135mkdir mars_lmd/libf/bibio
136ln -sf $WRFSRC/WRFV2/mars_lmd/libf/bibio/* mars_lmd/libf/bibio/
137mkdir mars_lmd/libo
138#touch mars_lmd/makefile
139
140mkdir test
141mkdir test/em_real
142mkdir test/em_quarter_ss
143ln -sf $WRFSRC/WRFV2/test/em_real/* test/em_real/
144
145cd mars_lmd/libf/phymars/
146\rm dimphys.h
147#ln -sf ../../../meso_dimphys.h dimphys.h
148cd ../../..
149
150echo '*** end'
151
152
153
154
Note: See TracBrowser for help on using the repository browser.