Ignore:
Timestamp:
Mar 3, 2015, 2:41:13 PM (10 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes -r2186:2216 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phylmd/physiq.F90

    r2187 r2220  
    636636  !$OMP THREADPRIVATE(fact_cldcon,facttemps)
    637637
    638   integer iflag_cldcon
    639   save iflag_cldcon
    640   !$OMP THREADPRIVATE(iflag_cldcon)
     638  integer iflag_cldth
     639  save iflag_cldth
     640  !$OMP THREADPRIVATE(iflag_cldth)
    641641  logical ptconv(klon,klev)
    642642  !IM cf. AM 081204 BEG
     
    913913          solarlong0,seuil_inversion, &
    914914          fact_cldcon, facttemps,ok_newmicro,iflag_radia, &
    915           iflag_cldcon,iflag_ratqs,ratqsbas,ratqshaut,tau_ratqs, &
     915          iflag_cldth,iflag_ratqs,ratqsbas,ratqshaut,tau_ratqs, &
    916916          ok_ade, ok_aie, ok_cdnc, aerosol_couple,  &
    917917          flag_aerosol, flag_aerosol_strat, new_aod, &
     
    10141014     print*,'CYCLE_DIURNE', cycle_diurne
    10151015     !
    1016      IF (iflag_con.EQ.2.AND.iflag_cldcon.GT.-1) THEN
    1017         abort_message = 'Tiedtke needs iflag_cldcon=-2 or -1'
     1016     IF (iflag_con.EQ.2.AND.iflag_cldth.GT.-1) THEN
     1017        abort_message = 'Tiedtke needs iflag_cldth=-2 or -1'
    10181018        CALL abort_gcm (modname,abort_message,1)
    10191019     ENDIF
     
    11301130                ,alp_bl_prescr, ale_bl_prescr)
    11311131           ! 11/09/06 rajout initialisation ALE et ALP du wake et PBL(YU)
    1132            !        print*,'apres ini_wake iflag_cldcon=', iflag_cldcon
     1132           !        print*,'apres ini_wake iflag_cldth=', iflag_cldth
    11331133        endif
    11341134
     
    13081308             annee_ref, &
    13091309             day_ref,  &
     1310             day_ini, &
     1311             start_time, &
    13101312             itau_phy, &
    13111313             io_lon, &
     
    18111813!>nrlmd+jyg
    18121814          pplay,     paprs,     pctsrf,             &
    1813           ftsol,falb1,falb2,ustar,u10m,v10m,wstar, &
    1814           sollwdown, cdragh,    cdragm,  u1,    v1, &
    1815           albsol1,   albsol2,   sens,    evap,   &
     1815          ftsol,falb1,falb2,ustar,u10m,v10m,wstar,  &
     1816          cdragh,    cdragm,  u1,    v1,            &
     1817          albsol1,   albsol2,   sens,    evap,      &
    18161818          albsol3_lic,runoff,   snowhgt,   qsnow, to_ice, sissnow, &
    18171819          zxtsol,    zxfluxlat, zt2m,    qsat2m,  &
     
    21682170             ftd,fqd,lalim_conv,wght_th, &
    21692171             ev, ep,epmlmMm,eplaMm, &
    2170              wdtrainA,wdtrainM,wght_cvfd)
     2172             wdtrainA,wdtrainM,wght_cvfd,qtc_cv,sigt_cv, &
     2173             tau_cld_cv,coefw_cld_cv)
    21712174        ! RomP <<<
    21722175
     
    22182221     !   calcul des proprietes des nuages convectifs
    22192222     clwcon0(:,:)=fact_cldcon*clwcon0(:,:)
     2223     IF (iflag_cld_cv <= 1) THEN
    22202224     call clouds_gno &
    22212225          (klon,klev,q_seri,zqsat,clwcon0,ptconv,ratqsc,rnebcon0)
     2226     ELSE
     2227     call clouds_bigauss &
     2228          (klon,klev,q_seri,zqsat,qtc_cv,sigt_cv,ptconv,ratqsc,rnebcon0)
     2229     ENDIF
     2230
    22222231
    22232232     ! =================================================================== c
     
    24522461  END IF
    24532462
    2454   !      print*,'apres callwake iflag_cldcon=', iflag_cldcon
     2463  !      print*,'apres callwake iflag_cldth=', iflag_cldth
    24552464  !
    24562465  !===================================================================
     
    26222631              enddo
    26232632
    2624            ELSE IF (iflag_trig_bl.eq.2) then
     2633           ELSE IF (iflag_trig_bl.ge.2) then
    26252634
    26262635              do i=1,klon
     
    27732782  ! water distribution
    27742783  CALL  calcratqs(klon,klev,prt_level,lunout,        &
    2775        iflag_ratqs,iflag_con,iflag_cldcon,pdtphys,  &
     2784       iflag_ratqs,iflag_con,iflag_cldth,pdtphys,  &
    27762785       ratqsbas,ratqshaut,tau_ratqs,fact_cldcon,   &
    27772786       ptconv,ptconvth,clwcon0th, rnebcon0th,     &
     
    27952804       frac_impa, frac_nucl, beta_prec_fisrt, &
    27962805       prfl, psfl, rhcl,  &
    2797        zqasc, fraca,ztv,zpspsk,ztla,zthl,iflag_cldcon, &
     2806       zqasc, fraca,ztv,zpspsk,ztla,zthl,iflag_cldth, &
    27982807       iflag_ice_thermo)
    27992808  !
     
    28512860  !
    28522861  !IM cf FH
    2853   !     IF (iflag_cldcon.eq.-1) THEN ! seulement pour Tiedtke
    2854   IF (iflag_cldcon.le.-1) THEN ! seulement pour Tiedtke
     2862  !     IF (iflag_cldth.eq.-1) THEN ! seulement pour Tiedtke
     2863  IF (iflag_cldth.le.-1) THEN ! seulement pour Tiedtke
    28552864     snow_tiedtke=0.
    28562865     !     print*,'avant calcul de la pseudo precip '
    2857      !     print*,'iflag_cldcon',iflag_cldcon
    2858      if (iflag_cldcon.eq.-1) then
     2866     !     print*,'iflag_cldth',iflag_cldth
     2867     if (iflag_cldth.eq.-1) then
    28592868        rain_tiedtke=rain_con
    28602869     else
     
    28892898     ENDDO
    28902899
    2891   ELSE IF (iflag_cldcon.ge.3) THEN
     2900  ELSE IF (iflag_cldth.ge.3) THEN
    28922901     !  On prend pour les nuages convectifs le max du calcul de la
    28932902     !  convection et du calcul du pas de temps precedent diminue d'un facteur
     
    29322941             tau_aero_sw_rrtm, piz_aero_sw_rrtm, cg_aero_sw_rrtm,  &
    29332942             tausum_aero, tau3d_aero)
     2943
     2944             CALL aeropt_lw_rrtm
    29342945#else
    29352946
     
    29762987     !   On prend la somme des fractions nuageuses et des contenus en eau
    29772988
    2978      if (iflag_cldcon>=5) then
     2989     if (iflag_cldth>=5) then
    29792990
    29802991        do k=1,klev
     
    31323143     calday = REAL(days_elapsed + 1) + jH_cur
    31333144
    3134      call chemtime(itap+itau_phy-1, date0, dtime)
     3145     call chemtime(itap+itau_phy-1, date0, dtime, itap)
    31353146     IF (config_inca == 'aero' .OR. config_inca == 'aeNP') THEN
    31363147        CALL AEROSOL_METEO_CALC( &
     
    34553466  ! Ajouter la tendance des rayonnements (tous les pas)
    34563467  !
    3457   DO k = 1, klev
    3458      DO i = 1, klon
    3459         t_seri(i,k) = t_seri(i,k) &
    3460              + (heat(i,k)-cool(i,k)) * dtime/RDAY
    3461      ENDDO
    3462   ENDDO
     3468  d_t_swr(:,:)=heat(:,:)*dtime/RDAY
     3469  d_t_lwr(:,:)=-cool(:,:)*dtime/RDAY
     3470  d_t_sw0(:,:)=heat0(:,:)*dtime/RDAY
     3471  d_t_lw0(:,:)=-cool0(:,:)*dtime/RDAY
     3472  CALL add_phys_tend(du0,dv0,d_t_swr,dq0,dql0,dqi0,paprs,'SW')
     3473  CALL add_phys_tend(du0,dv0,d_t_lwr,dq0,dql0,dqi0,paprs,'LW')
     3474
    34633475  !
    34643476  if (mydebug) then
Note: See TracChangeset for help on using the changeset viewer.