Ignore:
Timestamp:
Jun 21, 2022, 11:05:48 AM (3 years ago)
Author:
aslmd
Message:

epsi_generic value corrected

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90

    r2727 r2728  
    2929      use radii_mod, only : su_aer_radii,co2_reffrad,h2o_reffrad,dust_reffrad,h2so4_reffrad,back2lay_reffrad
    3030      use aerosol_mod, only : iaero_co2,iaero_h2o,iaero_dust,iaero_h2so4, iaero_back2lay, iaero_aurora
    31       use tracer_h, only: igcm_h2o_vap, igcm_h2o_ice, igcm_co2_ice
     31      use tracer_h
    3232      use comcstfi_mod, only: pi, mugaz, cpp
    3333      use callkeys_mod, only: varactive,diurnal,tracer,water,varfixed,satval,diagdtau,    &
     
    797797            endif
    798798            if (generic_condensation .and. .not. water) then
    799                qvar(k) = qvar(k)/(epsi_generic+qvar(k)*(1.-epsi_generic))
     799               do iq=1,nq
     800                  call generic_tracer_index(nq,iq,igcm_generic_vap,igcm_generic_ice,call_ice_vap_generic)
     801                  if (call_ice_vap_generic) then ! to call only one time the ice/vap pair of a tracer
     802
     803                     epsi_generic=constants_epsi_generic(iq)
     804
     805                     qvar(k) = qvar(k)/(epsi_generic+qvar(k)*(1.-epsi_generic))
     806
     807                  endif
     808               end do ! do iq=1,nq loop on tracers
    800809            endif
    801810         end do
  • trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90

    r2726 r2728  
    1717      use radinc_h, only : L_NSPECTI,L_NSPECTV,naerkind
    1818      use watercommon_h, only : RLVTT, Psat_water,epsi,su_watercycle, RV, T_h2o_ice_liq
    19       use generic_cloud_common_h, only : Psat_generic
     19      use generic_cloud_common_h, only : epsi_generic, Psat_generic
    2020      use thermcell_mod, only: init_thermcell_mod
    2121      use gases_h, only: gnom, gfrac
     
    3333                          alpha_lift, alpha_devil, qextrhor, &
    3434                          igcm_h2o_ice, igcm_h2o_vap, igcm_dustbin, &
    35                           igcm_co2_ice, nesp, is_chim, is_condensable
     35                          igcm_co2_ice, nesp, is_chim, is_condensable,constants_epsi_generic
    3636      use time_phylmdz_mod, only: ecritphy, iphysiq, nday
    3737      use phyetat0_mod, only: phyetat0
     
    931931                  muvar(1:ngrid,nlayer+1)=mugaz/(1.e0+(1.e0/epsi-1.e0)*pq(1:ngrid,nlayer,igcm_h2o_vap))
    932932                  ! take into account water effect on mean molecular weight
     933               elseif(generic_condensation) then
     934                  do iq=1,nq
     935
     936                     call generic_tracer_index(nq,iq,igcm_generic_vap,igcm_generic_ice,call_ice_vap_generic)
     937                     
     938                     if (call_ice_vap_generic) then ! to call only one time the ice/vap pair of a tracer
     939
     940                        epsi_generic=constants_epsi_generic(iq)
     941
     942                        muvar(1:ngrid,1:nlayer)=mugaz/(1.e0+(1.e0/epsi_generic-1.e0)*pq(1:ngrid,1:nlayer,igcm_generic_vap))
     943                        muvar(1:ngrid,nlayer+1)=mugaz/(1.e0+(1.e0/epsi_generic-1.e0)*pq(1:ngrid,nlayer,igcm_generic_vap)) 
     944
     945                     endif
     946               end do ! do iq=1,nq loop on tracers
     947               ! take into account generic condensable specie (GCS) effect on mean molecular weight
     948               
    933949               else
    934950                  muvar(1:ngrid,1:nlayer+1)=mugaz
Note: See TracChangeset for help on using the changeset viewer.