1 | #! /bin/bash |
---|
2 | |
---|
3 | |
---|
4 | echo '*** linking sources from ...' |
---|
5 | WRFSRC=$PWD/SRC/ |
---|
6 | echo $WRFSRC |
---|
7 | echo '*** to ...' |
---|
8 | HERE=$PWD |
---|
9 | echo $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 | |
---|
18 | mkdir zeWRFV2 |
---|
19 | #ln -sf $WRFSRC/prepare_ini . |
---|
20 | cd zeWRFV2 |
---|
21 | |
---|
22 | echo '*** start defining folders and links' |
---|
23 | ln -sf $WRFSRC/WRFV2/clean . |
---|
24 | ln -sf $WRFSRC/WRFV2/compile . |
---|
25 | #ln -sf $WRFSRC/WRFV2/makemeso . |
---|
26 | ln -sf $WRFSRC/WRFV2/configure . |
---|
27 | ln -sf $WRFSRC/WRFV2/Makefile . |
---|
28 | ln -sf $WRFSRC/WRFV2/mars.sed* . |
---|
29 | ln -sf $WRFSRC/WRFV2/*.h . |
---|
30 | ln -sf $WRFSRC/WRFV2/configure.defaults.* . |
---|
31 | ln -sf $WRFSRC/WRFV2/call_meso_inifis?.inc . |
---|
32 | ln -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 . |
---|
38 | mkdir Registry |
---|
39 | ln -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/ |
---|
43 | mkdir arch |
---|
44 | ln -sf $WRFSRC/WRFV2/arch/* arch/ |
---|
45 | mkdir dyn_em |
---|
46 | ln -sf $WRFSRC/WRFV2/dyn_em/* dyn_em/ |
---|
47 | mkdir dyn_exp |
---|
48 | ln -sf $WRFSRC/WRFV2/dyn_exp/* dyn_exp/ |
---|
49 | mkdir dyn_nmm |
---|
50 | ln -sf $WRFSRC/WRFV2/dyn_nmm/* dyn_nmm/ |
---|
51 | mkdir frame |
---|
52 | ln -sf $WRFSRC/WRFV2/frame/* frame/ |
---|
53 | mkdir inc |
---|
54 | ln -sf $WRFSRC/WRFV2/inc/* inc/ |
---|
55 | mkdir main |
---|
56 | ln -sf $WRFSRC/WRFV2/main/* main/ |
---|
57 | mkdir phys |
---|
58 | ln -sf $WRFSRC/WRFV2/phys/* phys/ |
---|
59 | mkdir run |
---|
60 | ln -sf $WRFSRC/WRFV2/run/* run/ |
---|
61 | mkdir share |
---|
62 | ln -sf $WRFSRC/WRFV2/share/* share/ |
---|
63 | mkdir tools |
---|
64 | ln -sf $WRFSRC/WRFV2/tools/* tools/ |
---|
65 | \rm tools/DOMAIN_TIME_TEST |
---|
66 | \rm tools/CodeBase |
---|
67 | mkdir tools/DOMAIN_TIME_TEST |
---|
68 | ln -sf $WRFSRC/WRFV2/tools/DOMAIN_TIME_TEST/* tools/DOMAIN_TIME_TEST/ |
---|
69 | mkdir tools/CodeBase |
---|
70 | ln -sf $WRFSRC/WRFV2/tools/CodeBase/* tools/CodeBase/ |
---|
71 | mkdir external |
---|
72 | ln -sf $WRFSRC/WRFV2/external/Makefile external/ |
---|
73 | mkdir external/io_int |
---|
74 | ln -sf $WRFSRC/WRFV2/external/io_int/* external/io_int/ |
---|
75 | mkdir external/esmf_time_f90 |
---|
76 | ln -sf $WRFSRC/WRFV2/external/esmf_time_f90/* external/esmf_time_f90/ |
---|
77 | mkdir external/io_netcdf |
---|
78 | ln -sf $WRFSRC/WRFV2/external/io_netcdf/* external/io_netcdf/ |
---|
79 | mkdir external/io_grib1 |
---|
80 | ln -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 |
---|
85 | mkdir external/io_grib1/MEL_grib1 |
---|
86 | ln -sf $WRFSRC/WRFV2/external/io_grib1/MEL_grib1/* external/io_grib1/MEL_grib1/ |
---|
87 | mkdir external/io_grib1/WGRIB |
---|
88 | ln -sf $WRFSRC/WRFV2/external/io_grib1/WGRIB/* external/io_grib1/WGRIB/ |
---|
89 | mkdir external/io_grib1/grib1_util |
---|
90 | ln -sf $WRFSRC/WRFV2/external/io_grib1/grib1_util/* external/io_grib1/grib1_util/ |
---|
91 | mkdir external/io_grib1/build |
---|
92 | mkdir external/io_grib_share |
---|
93 | ln -sf $WRFSRC/WRFV2/external/io_grib_share/* external/io_grib_share/ |
---|
94 | \rm external/io_grib_share/build |
---|
95 | mkdir external/io_grib_share/build |
---|
96 | ln -sf $WRFSRC/WRFV2/external/io_grib_share/build/* external/io_grib_share/build/ |
---|
97 | mkdir external/ioapi_share |
---|
98 | ln -sf $WRFSRC/WRFV2/external/ioapi_share/* external/ioapi_share/ |
---|
99 | mkdir external/io_phdf5 |
---|
100 | ln -sf $WRFSRC/WRFV2/external/io_phdf5/* external/io_phdf5/ |
---|
101 | mkdir external/RSL_LITE |
---|
102 | ln -sf $WRFSRC/WRFV2/external/RSL_LITE/* external/RSL_LITE/ |
---|
103 | mkdir external/io_grib2 |
---|
104 | ln -sf $WRFSRC/WRFV2/external/io_grib2/* external/io_grib2/ |
---|
105 | \rm external/io_grib2/bacio-1.3 |
---|
106 | \rm external/io_grib2/g2lib |
---|
107 | mkdir external/io_grib2/bacio-1.3 |
---|
108 | ln -sf $WRFSRC/WRFV2/external/io_grib2/bacio-1.3/* external/io_grib2/bacio-1.3/ |
---|
109 | mkdir external/io_grib2/g2lib |
---|
110 | ln -sf $WRFSRC/WRFV2/external/io_grib2/g2lib/* external/io_grib2/g2lib/ |
---|
111 | mkdir external/io_pnetcdf |
---|
112 | ln -sf $WRFSRC/WRFV2/external/io_pnetcdf/* external/io_pnetcdf/ |
---|
113 | mkdir external/RSL |
---|
114 | ln -sf $WRFSRC/WRFV2/external/RSL/* external/RSL/ |
---|
115 | \rm external/RSL/RSL |
---|
116 | mkdir external/RSL/RSL |
---|
117 | ln -sf $WRFSRC/WRFV2/external/RSL/RSL/* external/RSL/RSL/ |
---|
118 | mkdir external/io_esmf |
---|
119 | ln -sf $WRFSRC/WRFV2/external/io_esmf/* external/io_esmf/ |
---|
120 | mkdir external/io_mcel |
---|
121 | ln -sf $WRFSRC/WRFV2/external/io_mcel/* external/io_mcel/ |
---|
122 | mkdir mars_lmd |
---|
123 | mkdir mars_lmd/libf |
---|
124 | ln -sf $WRFSRC/WRFV2/mars_lmd/makegcm* mars_lmd/ |
---|
125 | ln -sf $WRFSRC/WRFV2/mars_lmd/create_make_gcm mars_lmd/ |
---|
126 | #ln -sf $WRFSRC/WRFV2/mars_lmd/makefile mars_lmd/ |
---|
127 | ln -sf $WRFSRC/WRFV2/mars_lmd/libf/duplicate* mars_lmd/libf/ |
---|
128 | ln -sf $WRFSRC/WRFV2/mars_lmd/libf/generate* mars_lmd/libf/ |
---|
129 | |
---|
130 | mkdir mars_lmd/libf/grid |
---|
131 | ln -sf $WRFSRC/WRFV2/mars_lmd/libf/grid/* mars_lmd/libf/grid/ |
---|
132 | mkdir mars_lmd/libf/phymars |
---|
133 | ln -sf $WRFSRC/WRFV2/mars_lmd/libf/phymars/* mars_lmd/libf/phymars/ |
---|
134 | mkdir mars_lmd/libf/dyn3d |
---|
135 | ln -sf $WRFSRC/WRFV2/mars_lmd/libf/dyn3d/* mars_lmd/libf/dyn3d/ |
---|
136 | mkdir mars_lmd/libf/aeronomars |
---|
137 | ln -sf $WRFSRC/WRFV2/mars_lmd/libf/aeronomars/* mars_lmd/libf/aeronomars/ |
---|
138 | mkdir mars_lmd/libf/bibio |
---|
139 | ln -sf $WRFSRC/WRFV2/mars_lmd/libf/bibio/* mars_lmd/libf/bibio/ |
---|
140 | mkdir mars_lmd/libo |
---|
141 | #touch mars_lmd/makefile |
---|
142 | |
---|
143 | mkdir test |
---|
144 | mkdir test/em_real |
---|
145 | mkdir test/em_quarter_ss |
---|
146 | ln -sf $WRFSRC/WRFV2/test/em_real/* test/em_real/ |
---|
147 | |
---|
148 | cd mars_lmd/libf/phymars/ |
---|
149 | \rm dimphys.h |
---|
150 | #ln -sf ../../../meso_dimphys.h dimphys.h |
---|
151 | cd ../../.. |
---|
152 | |
---|
153 | echo '*** end' |
---|
154 | |
---|
155 | |
---|
156 | |
---|
157 | |
---|