Changeset 2726 for trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90
- Timestamp:
- Jun 21, 2022, 11:05:47 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90
r2724 r2726 421 421 real rneb_generic(ngrid,nlayer,nq) ! GCS cloud fraction (generic condensation). 422 422 real psat_tmp_generic 423 real metallicity 424 423 real, save :: metallicity ! metallicity of planet --- is not used here, but necessary to call function Psat_generic 424 !$OMP THREADPRIVATE(metallicity) 425 425 426 logical clearsky ! For double radiative transfer call. By BC 426 427 … … 716 717 717 718 endif 719 720 ! Set metallicity for GCS 721 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 722 metallicity=0.0 ! default value --- is not used here but necessary to call function Psat_generic 723 call getin_p("metallicity",metallicity) ! --- is not used here but necessary to call function Psat_generic 718 724 719 725 ! Set some parameters for the thermal plume model … … 1581 1587 end if 1582 1588 1583 if (.not. water) then ! Compute GCS cloud fraction. For now we can not have both water cloud fraction and GCS cloud fraction 1589 if (.not. water) then 1590 ! Compute GCS (Generic Condensable Specie) cloud fraction. For now we can not have both water cloud fraction and GCS cloud fraction 1591 ! Water is the priority 1592 ! If you have set water and generic_condensation, then cloudfrac will be water cloudfrac 1593 ! 1594 ! If you have set generic_condensation (and not water) and you have set several GCS 1595 ! then cloudfrac will be only the cloudfrac of the last generic tracer 1596 ! (Because it is rewritten every tracer in the loop) 1597 ! 1598 ! Maybe one should create a cloudfrac_generic(ngrid,nlayer,nq) with 3 dimensions, the last one for tracers 1584 1599 1585 1600 ! Let's loop on tracers … … 1592 1607 do ig=1,ngrid 1593 1608 cloudfrac(ig,l)=MAX(rneb_generic(ig,l,iq),rneb_man(ig,l)) 1594 ! To be improved : for now, cloudfrac is only the cloudfrac of the last generic tracer1595 ! Because it is rewritten every tracer1596 ! One should create a cloudfrac_generic(ngrid,nlayer,nq)1597 1609 enddo 1598 1610 enddo … … 2121 2133 do l = 1, nlayer 2122 2134 do ig=1,ngrid 2123 metallicity = 0.2124 2135 call Psat_generic(zt(ig,l),pplay(ig,l),metallicity,psat_tmp_generic,qsat_generic(ig,l,iq)) 2125 2136 RH_generic(ig,l,iq) = zq(ig,l,igcm_generic_vap) / qsat_generic(ig,l,iq)
Note: See TracChangeset
for help on using the changeset viewer.