| 1 | #! /bin/bash |
|---|
| 2 | #### |
|---|
| 3 | #### A. Spiga -- 2010 -- |
|---|
| 4 | #### |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | \rm -rf WRFV2 |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | # |
|---|
| 11 | ## WRF modeling system software Version 3.0.1.1 (August 22, 2008) |
|---|
| 12 | # |
|---|
| 13 | |
|---|
| 14 | wget --no-check-certificate http://www2.mmm.ucar.edu/wrf/src/WRFV3.0.1.1.TAR.gz |
|---|
| 15 | tar xzvf WRFV3.0.1.1.TAR.gz |
|---|
| 16 | \rm WRFV3.0.1.1.TAR.gz |
|---|
| 17 | #mv WRFV3/* . |
|---|
| 18 | #rmdir WRFV3 |
|---|
| 19 | |
|---|
| 20 | #### faking stuff for copy_model script |
|---|
| 21 | mv WRFV3 WRFV2 |
|---|
| 22 | touch in_reality_this_is_WRFV3_but_is_named_WRFV2_for_continuity |
|---|
| 23 | cd WRFV2 |
|---|
| 24 | ln -sf ../../WRFV2/mars_lmd . |
|---|
| 25 | ln -sf ../../WRFV2/mars_lmd_new . |
|---|
| 26 | ln -sf ../../WRFV2/venus_lmd_new . |
|---|
| 27 | ln -sf ../../WRFV2/generic_lmd_new . |
|---|
| 28 | ln -sf ../../WRFV2/titan_lmd_new . |
|---|
| 29 | ln -sf ../modif_mars . |
|---|
| 30 | ln -sf ../../WRFV2/*.h . |
|---|
| 31 | ln -sf ../../WRFV2/physics.sed . |
|---|
| 32 | cp ../../WRFV2/call_meso_inifis?.inc . |
|---|
| 33 | cp ../../WRFV2/call_meso_physiq?.inc . |
|---|
| 34 | touch configure.defaults.dummy |
|---|
| 35 | touch mars.sed.dummy |
|---|
| 36 | mkdir external/RSL |
|---|
| 37 | mkdir external/RSL/RSL |
|---|
| 38 | touch external/RSL/RSL.dummy |
|---|
| 39 | touch external/RSL/RSL/RSL.dummy |
|---|
| 40 | |
|---|
| 41 | # |
|---|
| 42 | ## Replacing Mars files |
|---|
| 43 | # |
|---|
| 44 | |
|---|
| 45 | #tar xzvf LMD_LES_MARS_patches.tar.gz |
|---|
| 46 | #mv LMD_LES_MARS_patches LMD_LES_MARS/modif_mars |
|---|
| 47 | #cd LMD_LES_MARS |
|---|
| 48 | #ln -sf ../LMD_LES_MARS_patches modif_mars |
|---|
| 49 | |
|---|
| 50 | #cd modif_mars |
|---|
| 51 | #ln -sf ../../LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F |
|---|
| 52 | #cd .. |
|---|
| 53 | cd arch |
|---|
| 54 | ln -sf ../modif_mars/configure_new.defaults . |
|---|
| 55 | cd .. |
|---|
| 56 | |
|---|
| 57 | cd dyn_em |
|---|
| 58 | ln -sf ../modif_mars/module_big_step_utilities_em.F . |
|---|
| 59 | ln -sf ../modif_mars/module_first_rk_step_part1.F . |
|---|
| 60 | ln -sf ../modif_mars/module_first_rk_step_part2.F . |
|---|
| 61 | ln -sf ../modif_mars/module_initialize_les.F . |
|---|
| 62 | ln -sf ../modif_mars/solve_em.F . |
|---|
| 63 | ln -sf ../modif_mars/module_em.F . |
|---|
| 64 | ln -sf ../modif_mars/module_diffusion_em.F . |
|---|
| 65 | ln -sf ../modif_mars/Makefile_dyn_em Makefile |
|---|
| 66 | ln -sf ../modif_mars/module_init_utilities.F . |
|---|
| 67 | cd .. |
|---|
| 68 | |
|---|
| 69 | cd frame |
|---|
| 70 | ln -sf ../modif_mars/module_driver_constants.F . |
|---|
| 71 | cd .. |
|---|
| 72 | |
|---|
| 73 | cd Registry |
|---|
| 74 | ln -sf ../modif_mars/Registry.EM . |
|---|
| 75 | ln -sf ../modif_mars/Registry.EM.newphys . |
|---|
| 76 | ln -sf ../modif_mars/Registry.bash . |
|---|
| 77 | cd .. |
|---|
| 78 | |
|---|
| 79 | cd phys |
|---|
| 80 | ln -sf ../modif_mars/Makefile . |
|---|
| 81 | ln -sf ../modif_mars/module_lmd_driver.F . |
|---|
| 82 | ln -sf ../modif_mars/module_physics_addtendc.F . |
|---|
| 83 | ln -sf ../modif_mars/module_physics_init.F . |
|---|
| 84 | ln -sf ../modif_mars/module_lmd_driver.F.new . |
|---|
| 85 | ln -sf ../modif_mars/dynphy_wrf_* . |
|---|
| 86 | cd .. |
|---|
| 87 | |
|---|
| 88 | cd share |
|---|
| 89 | ln -sf ../modif_mars/module_model_constants.F . |
|---|
| 90 | cd .. |
|---|
| 91 | |
|---|
| 92 | |
|---|
| 93 | ln -sf modif_mars/makeles . |
|---|
| 94 | |
|---|
| 95 | |
|---|
| 96 | ### create a fake directory |
|---|
| 97 | mkdir -p mars_lmd/libf/phymars |
|---|
| 98 | |
|---|
| 99 | |
|---|
| 100 | |
|---|
| 101 | # M Lefevre: option -C makes things bad in some OS |
|---|
| 102 | cd external |
|---|
| 103 | sed 's/-C//g' esmf_time_f90/Makefile > zolbxs ; mv zolbxs esmf_time_f90/Makefile |
|---|
| 104 | sed 's/-C//g' ioapi_share/makefile > zolbxs ; mv zolbxs ioapi_share/makefile |
|---|
| 105 | sed 's/-C//g' io_esmf/makefile > zolbxs ; mv zolbxs io_esmf/makefile |
|---|
| 106 | sed 's/-C//g' io_grib1/Makefile > zolbxs ; mv zolbxs io_grib1/Makefile |
|---|
| 107 | sed 's/-C//g' io_grib2/Makefile > zolbxs ; mv zolbxs io_grib2/Makefile |
|---|
| 108 | sed 's/-C//g' io_grib_share/Makefile > zolbxs ; mv zolbxs io_grib_share/Makefile |
|---|
| 109 | sed 's/-C//g' io_int/makefile > zolbxs ; mv zolbxs io_int/makefile |
|---|
| 110 | sed 's/-C//g' io_mcel/makefile > zolbxs ; mv zolbxs io_mcel/makefile |
|---|
| 111 | sed 's/-C//g' io_netcdf/makefile > zolbxs ; mv zolbxs io_netcdf/makefile |
|---|
| 112 | sed 's/-C//g' io_phdf5/Makefile > zolbxs ; mv zolbxs io_phdf5/Makefile |
|---|
| 113 | sed 's/-C//g' io_pnetcdf/makefile > zolbxs ; mv zolbxs io_pnetcdf/makefile |
|---|
| 114 | sed 's/-C//g' RSL_LITE/makefile > zolbxs ; mv zolbxs RSL_LITE/makefile |
|---|
| 115 | cd .. |
|---|