Changeset 988 for LMDZ4/trunk/libf/dyn3d
- Timestamp:
- Aug 5, 2008, 4:39:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/dyn3d/etat0_netcdf.F
r971 r988 4 4 c 5 5 c 6 SUBROUTINE etat0_netcdf (interbar, masque , pctsrf)6 SUBROUTINE etat0_netcdf (interbar, masque) 7 7 8 8 USE startvar … … 12 12 USE pbl_surface_mod 13 13 USE ocean_slab_mod 14 USE surface_data 14 USE surface_data, ONLY : ocean, ok_veget 15 USE phys_state_var_mod 15 16 ! 16 17 IMPLICIT NONE … … 45 46 REAL :: alblw(klon,nbsrf) 46 47 REAL :: tsoil(klon,nsoilmx,nbsrf) 47 REAL :: radsol(klon),rain_fall(klon), snow_fall(klon)48 REAL :: solsw(klon), sollw(klon), fder(klon)49 48 cIM "slab" ocean 50 49 REAL :: tslab(klon), seaice(klon) 51 50 REAL :: frugs(klon,nbsrf), agesno(klon,nbsrf) 52 51 REAL :: rugmer(klon) 53 REAL :: zmea(iip1*jjp1), zstd(iip1*jjp1)54 REAL :: zsig(iip1*jjp1), zgam(iip1*jjp1), zthe(iip1*jjp1)55 REAL :: zpic(iip1*jjp1), zval(iip1*jjp1), rugsrel(iip1*jjp1)56 52 REAL :: qd(iip1, jjp1, llm) 57 REAL :: pctsrf(klon, nbsrf)58 REAL :: t_ancien(klon,klev), q_ancien(klon,klev) !59 53 REAL :: run_off_lic_0(klon) 60 real :: clwcon(klon,klev),rnebcon(klon,klev),ratqs(klon,klev)61 54 ! declarations pour lecture glace de mer 62 55 REAL :: rugv(klon) … … 102 95 REAL :: w(ip1jmp1,llm) 103 96 REAL ::phystep 104 INTEGER :: radpas 105 real zrel(iip1*jjp1),chmin,chmax 97 REAL :: rugsrel(iip1*jjp1) 98 REAL :: fder(klon) 99 real zrel(iip1*jjp1),chmin,chmax 106 100 107 101 CHARACTER*80 :: visu_file … … 119 113 real zx_tmp_2d(iim,jjp1) 120 114 121 REAL, DIMENSION(klon,klev,nbsrf) :: pbl_tke ! turb kinetic energy122 REAL, DIMENSION(klon) :: zmax0, f0123 REAL, DIMENSION(klon,klev) :: ema_work1, ema_work2124 115 REAL :: dummy(klon, nbsrf) 116 117 logical :: ok_newmicro 118 integer :: iflag_radia 119 logical :: ok_journe, ok_mensuel, ok_instan, ok_hf 120 LOGICAL :: ok_ade, ok_aie, aerosol_couple 121 REAL :: bl95_b0, bl95_b1 122 real :: fact_cldcon, facttemps,ratqsbas,ratqshaut 123 integer :: iflag_cldcon 124 integer :: iflag_ratqs 125 integer :: iflag_coupl 126 integer :: iflag_clos 127 integer :: iflag_wake 128 integer :: iflag_thermals,nsplit_thermals 129 real :: tau_thermals 130 REAL :: solarlong0 131 real :: seuil_inversion 132 125 133 ! 126 134 ! Constantes … … 144 152 ! CALL defrun_new(99,.TRUE.,clesphy0) 145 153 CALL conf_gcm( 99, .TRUE. , clesphy0 ) 154 call conf_phys(ocean, ok_veget, ok_journe, ok_mensuel, ok_instan, & 155 & ok_hf, & 156 & solarlong0,seuil_inversion, & 157 & fact_cldcon, facttemps,ok_newmicro,iflag_radia, & 158 & iflag_cldcon, & 159 & iflag_ratqs,ratqsbas,ratqshaut, & 160 & ok_ade, ok_aie, aerosol_couple, & 161 & bl95_b0, bl95_b1, & 162 & iflag_thermals,nsplit_thermals,tau_thermals, & 163 & iflag_coupl,iflag_clos,iflag_wake ) 146 164 147 165 dtvr = daysec/FLOAT(day_step) … … 152 170 ! 153 171 CALL inifilr() 172 CALL phys_state_var_init() 154 173 ! 155 174 latfi(1) = ASIN(1.0) … … 175 194 ENDDO 176 195 ! 196 rlat(1) = ASIN(1.0) 197 DO j = 2, jjm 198 DO i = 1, iim 199 rlat((j-2)*iim+1+i)= rlatu(j) 200 ENDDO 201 ENDDO 202 rlat(klon) = - ASIN(1.0) 203 ! 204 rlon(1) = 0.0 205 DO j = 2, jjm 206 DO i = 1, iim 207 rlon((j-2)*iim+1+i) = rlonv(i) 208 ENDDO 209 ENDDO 210 rlon(klon) = 0.0 211 ! 212 xpi = 2.0 * ASIN(1.0) 213 DO ig = 1, klon 214 rlat(ig) = rlat(ig) * 180.0 / xpi 215 rlon(ig) = rlon(ig) * 180.0 / xpi 216 ENDDO 217 ! 218 177 219 178 220 … … 639 681 c tsol, qsol, sn,albe, evap,tsoil,rain_fall, snow_fall,solsw, sollw,frugs 640 682 c 641 tsolsrf(:,is_ter) = tsol642 tsolsrf(:,is_lic) = tsol643 tsolsrf(:,is_oce) = tsol644 tsolsrf(:,is_sic) = tsol683 ftsol(:,is_ter) = tsol 684 ftsol(:,is_lic) = tsol 685 ftsol(:,is_oce) = tsol 686 ftsol(:,is_sic) = tsol 645 687 snsrf(:,is_ter) = sn 646 688 snsrf(:,is_lic) = sn 647 689 snsrf(:,is_oce) = sn 648 690 snsrf(:,is_sic) = sn 649 albe(:,is_ter) = 0.08650 albe(:,is_lic) = 0.6651 albe(:,is_oce) = 0.5652 albe(:,is_sic) = 0.6653 alblw = albe691 falb1(:,is_ter) = 0.08 692 falb1(:,is_lic) = 0.6 693 falb1(:,is_oce) = 0.5 694 falb1(:,is_sic) = 0.6 695 falb2 = falb1 654 696 evap(:,:) = 0. 655 697 qsolsrf(:,is_ter) = 150 … … 669 711 agesno = 0. 670 712 cIM "slab" ocean 671 tslab(1:klon) = tsolsrf(1:klon,is_oce)713 tslab(1:klon) = ftsol(1:klon,is_oce) 672 714 seaice = 0. !kg m-2 673 715 c … … 681 723 ratqs = 0.0 682 724 run_off_lic_0 = 0.0 725 rugoro = 0.0 683 726 684 727 c … … 693 736 ema_work1(:,:) = 0. 694 737 ema_work2(:,:) = 0. 738 wake_deltat(:,:) = 0. 739 wake_deltaq(:,:) = 0. 740 wake_s(:) = 0. 741 wake_cstar(:) = 0. 742 wake_fip(:) = 0. 695 743 696 744 call fonte_neige_init(run_off_lic_0)
Note: See TracChangeset
for help on using the changeset viewer.