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