source: LMDZ5/trunk/tools/install_1d_src.sh @ 1874

Last change on this file since 1874 was 1867, checked in by Laurent Fairhead, 11 years ago

La distinction avec ou sans writelim n'a plus lieu d'être
MP Lefebvre


the writelim/nowritelim distinction is of no further use
MP Lefebvre

  • Property svn:executable set to *
File size: 1.6 KB
Line 
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
6set -xe
7
8# cp --no-clobber phylmd/* phy1d:
9cd phylmd
10set +x
11for my_file in *
12  do
13  if [[ ! -a ../phy1d/$my_file ]]
14      then
15      cp $my_file ../phy1d
16  fi
17done
18set -x
19
20cd ../phy1d
21rm wrgradsfi.F # already in 1DUTILS.h
22
23sed -i -e "/add_phys_tend.*_vdf/s/add_phys_tend/add_pbl_tend/" physiq.F
24
25sed -i -e "/SUBROUTINE *convers_timesteps/,/END SUBROUTINE convers_timesteps/{
26 /USE *phys_cal_mod/d
27 /use *ioipsl/a\\
28    USE phys_cal_mod
29 s/ioget_mon_len(annee_ref,day_ref)/mth_len/
30};/SUBROUTINE *phys_output_open/,/end *subroutine *phys_output_open/{
31 /USE *ioipsl/a\\
32  USE phys_cal_mod, only : hour
33 /ymds2ju.*annee_ref.*zjulian/c\\
34!!!      CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian)       !jyg \\
35! correction pour l heure initiale                               !jyg \\
36!                                                                !jyg \\
37      CALL ymds2ju(annee_ref, 1, idayref, hour, zjulian)         !jyg
38}" phys_output_mod.F90
39
40sed -i -e "/^ *INCLUDE *\"temps.h\"/{
41 a\\
42!****************************************************************************************\\
43! Declarations specifiques pour le 1D. A reprendre \\
44    INCLUDE \"flux_arp.h\"
45 }; /^.*REAL *::.*fsens *, *flat/d; /^.*LOGICAL *::.*ok_flux_surf/d; /^.*COMMON.*flux_arp.*/d " pbl_surface_mod.F90
46
47 ln -s ../dyn3d/mod_const_mpi.F90 .
48 ln -s ../dyn3d/infotrac.F90 .
49 ln -s ../dyn3d/conf_gcm.F .
50 ln -s ../dyn3d/pres2lev* .
51 ln -s ../dyn3d/control_mod.F90 .
52 ln -s ../dyn3d/q_sat.F .
53 ln -s ../dyn3d/disvert.F90 .
Note: See TracBrowser for help on using the repository browser.