[11] | 1 | #! /bin/bash |
---|
| 2 | |
---|
| 3 | #---------------------------------------# |
---|
| 4 | # A script to install the model # |
---|
| 5 | #---------------------------------------# |
---|
| 6 | # Author: Aymeric Spiga - November 2008 # |
---|
| 7 | #---------------------------------------# |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | touch download_log |
---|
| 11 | |
---|
| 12 | mkdir SRC |
---|
| 13 | cd SRC/ |
---|
| 14 | |
---|
| 15 | cp -f ../../dl.tar.gz . |
---|
| 16 | |
---|
| 17 | mv ../g95.tar.gz . |
---|
| 18 | mv ../mac.tar.gz . |
---|
| 19 | mv ../datesave . |
---|
| 20 | mv ../saved . |
---|
| 21 | mv ../INIT_SIMPLE_TEST.tar.gz . |
---|
| 22 | |
---|
| 23 | ########################### |
---|
| 24 | gunzip dl.tar.gz |
---|
| 25 | tar xf dl.tar |
---|
| 26 | cp -rf dl/* . |
---|
| 27 | rm -rf dl |
---|
| 28 | rm -rf dl.tar |
---|
| 29 | ########################### |
---|
| 30 | |
---|
| 31 | echo 1/8 get WRF sources |
---|
| 32 | gunzip WRFV2.2.TAR.gz > /dev/null |
---|
| 33 | tar xf WRFV2.2.TAR > /dev/null |
---|
| 34 | \rm WRFV2.2.TAR |
---|
| 35 | ## patch |
---|
| 36 | mv -f rsl_bcast.c WRFV2/external/RSL_LITE/ |
---|
| 37 | mv -f solve_em.F.fix WRFV2/dyn_em/solve_em.F |
---|
| 38 | ## patch |
---|
| 39 | |
---|
| 40 | echo 2/8 get WPS sources |
---|
| 41 | gunzip WPSV2.2.TAR.gz > /dev/null |
---|
| 42 | tar xf WPSV2.2.TAR > /dev/null |
---|
| 43 | \rm WPSV2.2.TAR |
---|
| 44 | |
---|
| 45 | echo 3/8 get WRF modified Martian sources |
---|
| 46 | mv ../sources_Mars.tar.gz . |
---|
| 47 | gunzip sources_Mars.tar.gz > /dev/null |
---|
| 48 | tar xf sources_Mars.tar > /dev/null |
---|
| 49 | cp -rf save/* WRFV2/ |
---|
| 50 | \rm -rf save |
---|
| 51 | \rm sources_Mars.tar |
---|
| 52 | |
---|
| 53 | echo 4/8 get WPS modified Martian sources |
---|
| 54 | mv ../WPS.tar.gz . |
---|
| 55 | gunzip WPS.tar.gz > /dev/null |
---|
| 56 | tar xf WPS.tar > /dev/null |
---|
| 57 | \rm WPS.tar |
---|
| 58 | |
---|
| 59 | echo 5/8 get ARWpost for Mars |
---|
| 60 | mv ../ARWpost.tar.gz . |
---|
| 61 | gunzip ARWpost.tar.gz > /dev/null |
---|
| 62 | tar xf ARWpost.tar > /dev/null |
---|
| 63 | \rm ARWpost.tar |
---|
| 64 | |
---|
| 65 | echo 6/8 get PREP_MARS |
---|
| 66 | mv ../PREP_MARS.tar.gz . |
---|
| 67 | gunzip PREP_MARS.tar.gz > /dev/null |
---|
| 68 | tar xf PREP_MARS.tar > /dev/null |
---|
| 69 | \rm PREP_MARS.tar |
---|
| 70 | |
---|
| 71 | cd .. |
---|
| 72 | |
---|
| 73 | echo 7/8 get surface data utilities |
---|
| 74 | gunzip WPS_GEOG.tar.gz > /dev/null |
---|
| 75 | tar xf WPS_GEOG.tar > /dev/null |
---|
| 76 | mv SRC/dust_tes.nc WPS_GEOG/ |
---|
| 77 | \rm WPS_GEOG.tar |
---|
| 78 | |
---|
| 79 | echo 8/8 get run utilies |
---|
| 80 | gunzip SIMU.tar.gz > /dev/null |
---|
| 81 | tar xf SIMU.tar > /dev/null |
---|
| 82 | \rm SIMU.tar |
---|
| 83 | |
---|
| 84 | echo ok |
---|