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

Some comments and metallicity now generalised

File:
1 edited

Legend:

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

    r2724 r2726  
    421421      real rneb_generic(ngrid,nlayer,nq) ! GCS cloud fraction (generic condensation).
    422422      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
    425426      logical clearsky ! For double radiative transfer call. By BC
    426427     
     
    716717
    717718         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
    718724         
    719725!        Set some parameters for the thermal plume model
     
    15811587            end if
    15821588
    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
    15841599
    15851600               ! Let's loop on tracers
     
    15921607                        do ig=1,ngrid
    15931608                           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 tracer
    1595                            ! Because it is rewritten every tracer
    1596                            ! One should create a cloudfrac_generic(ngrid,nlayer,nq)
    15971609                        enddo
    15981610                     enddo
     
    21212133               do l = 1, nlayer
    21222134                  do ig=1,ngrid
    2123                      metallicity = 0.
    21242135                     call Psat_generic(zt(ig,l),pplay(ig,l),metallicity,psat_tmp_generic,qsat_generic(ig,l,iq))
    21252136                     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.