Changeset 2728 for trunk/LMDZ.GENERIC/libf
- Timestamp:
- Jun 21, 2022, 11:05:48 AM (3 years ago)
- Location:
- trunk/LMDZ.GENERIC/libf/phystd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90
r2727 r2728 29 29 use radii_mod, only : su_aer_radii,co2_reffrad,h2o_reffrad,dust_reffrad,h2so4_reffrad,back2lay_reffrad 30 30 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_ice31 use tracer_h 32 32 use comcstfi_mod, only: pi, mugaz, cpp 33 33 use callkeys_mod, only: varactive,diurnal,tracer,water,varfixed,satval,diagdtau, & … … 797 797 endif 798 798 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 800 809 endif 801 810 end do -
trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90
r2726 r2728 17 17 use radinc_h, only : L_NSPECTI,L_NSPECTV,naerkind 18 18 use watercommon_h, only : RLVTT, Psat_water,epsi,su_watercycle, RV, T_h2o_ice_liq 19 use generic_cloud_common_h, only : Psat_generic19 use generic_cloud_common_h, only : epsi_generic, Psat_generic 20 20 use thermcell_mod, only: init_thermcell_mod 21 21 use gases_h, only: gnom, gfrac … … 33 33 alpha_lift, alpha_devil, qextrhor, & 34 34 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 36 36 use time_phylmdz_mod, only: ecritphy, iphysiq, nday 37 37 use phyetat0_mod, only: phyetat0 … … 931 931 muvar(1:ngrid,nlayer+1)=mugaz/(1.e0+(1.e0/epsi-1.e0)*pq(1:ngrid,nlayer,igcm_h2o_vap)) 932 932 ! 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 933 949 else 934 950 muvar(1:ngrid,1:nlayer+1)=mugaz
Note: See TracChangeset
for help on using the changeset viewer.