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