[1700] | 1 | # This is a script in Bash. |
---|
| 2 | |
---|
| 3 | # This script installs the source files of LMDZ 1D. Run this script |
---|
| 4 | # from "libf". |
---|
| 5 | |
---|
| 6 | set -xe |
---|
| 7 | |
---|
| 8 | # cp --no-clobber phylmd/* phy1d: |
---|
| 9 | cd phylmd |
---|
| 10 | set +x |
---|
| 11 | for my_file in * |
---|
| 12 | do |
---|
| 13 | if [[ ! -a ../phy1d/$my_file ]] |
---|
| 14 | then |
---|
[1878] | 15 | # cp $my_file ../phy1d |
---|
| 16 | cp -R $my_file ../phy1d |
---|
[1700] | 17 | fi |
---|
| 18 | done |
---|
| 19 | set -x |
---|
| 20 | |
---|
| 21 | cd ../phy1d |
---|
[1929] | 22 | rm -f wrgradsfi.F # already in 1DUTILS.h |
---|
[1700] | 23 | |
---|
[1878] | 24 | sed -i -e "/add_phys_tend.*_vdf/s/add_phys_tend/add_pbl_tend/" physiq.F90 |
---|
[1700] | 25 | |
---|
| 26 | sed -i -e "/SUBROUTINE *convers_timesteps/,/END SUBROUTINE convers_timesteps/{ |
---|
| 27 | /USE *phys_cal_mod/d |
---|
| 28 | /use *ioipsl/a\\ |
---|
| 29 | USE phys_cal_mod |
---|
| 30 | s/ioget_mon_len(annee_ref,day_ref)/mth_len/ |
---|
| 31 | };/SUBROUTINE *phys_output_open/,/end *subroutine *phys_output_open/{ |
---|
| 32 | /USE *ioipsl/a\\ |
---|
| 33 | USE phys_cal_mod, only : hour |
---|
| 34 | /ymds2ju.*annee_ref.*zjulian/c\\ |
---|
| 35 | !!! CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) !jyg \\ |
---|
| 36 | ! correction pour l heure initiale !jyg \\ |
---|
| 37 | ! !jyg \\ |
---|
| 38 | CALL ymds2ju(annee_ref, 1, idayref, hour, zjulian) !jyg |
---|
| 39 | }" phys_output_mod.F90 |
---|
| 40 | |
---|
| 41 | ln -s ../dyn3d/mod_const_mpi.F90 . |
---|
[1947] | 42 | ln -sf ../dyn3d_common/infotrac.F90 . |
---|
[1700] | 43 | ln -s ../dyn3d/conf_gcm.F . |
---|
[1944] | 44 | ln -s ../dyn3d_common/pres2lev* . |
---|
[1952] | 45 | ln -s ../dyn3d_common/control_mod.F90 . |
---|
[1947] | 46 | ln -sf ../dyn3d_common/q_sat.F . |
---|
[1952] | 47 | ln -s ../dyn3d_common/disvert.F90 . |
---|