Ignore:
Timestamp:
Oct 4, 2022, 9:42:41 PM (21 months ago)
Author:
dcugnet
Message:

Commit for Nicolas: fixes for StratAer?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/StratAer/micphy_tstep.F90

    r3677 r4293  
    77  USE dimphy, ONLY : klon,klev
    88  USE aerophys
    9   USE infotrac_phy
     9  USE infotrac_phy, ONLY : nbtr_bin, nbtr_sulgas, nbtr, id_H2SO4_strat
    1010  USE phys_local_var_mod, ONLY: mdw, budg_3D_nucl, budg_3D_cond_evap, budg_h2so4_to_part, R2SO4, DENSO4, f_r_wet
    1111  USE nucleation_tstep_mod
     
    4747  REAL ASO4(nbtr_bin)
    4848  REAL DNDR(nbtr_bin)
    49   REAL H2SO4_sat(nbtr_bin)
     49  REAL H2SO4_sat
    5050
    5151  DO it=1,nbtr_bin
     
    107107             & ACTSO4(ilon,ilev),R2SO4(ilon,ilev),DENSO4(ilon,ilev),f_r_wet(ilon,ilev), &
    108108             & RRSI,Vbin,FL,ASO4,DNDR)
     109      ! Compute H2SO4 saturate vapor for big particules
     110      H2SO4_sat = DNDR(nbtr_bin)/(pplay(ilon,ilev)/t_seri(ilon,ilev)/RD/1.E6/mH2SO4mol)
    109111      ! consider only condensation (positive FL)
    110112      DO it=1,nbtr_bin
     
    117119      ENDDO
    118120      ! determine appropriate time step
    119       dt=(H2SO4_init-H2SO4_sat(nbtr_bin))/float(nbtstep)/MAX(1.e-30, nucl_rate+cond_evap_rate) !cond_evap_rate pos. for cond. and neg. for evap.
     121      dt=(H2SO4_init-H2SO4_sat)/float(nbtstep)/MAX(1.e-30, nucl_rate+cond_evap_rate) !cond_evap_rate pos. for cond. and neg. for evap.
    120122      IF (dt.LT.0.0) THEN
    121123        dt=PDT
Note: See TracChangeset for help on using the changeset viewer.