Changeset 2954


Ignore:
Timestamp:
May 2, 2023, 4:58:20 PM (19 months ago)
Author:
emillour
Message:

Generic PCM:
Improve diagnostics given by callcorrk (get min/max over whole globe, not
just over the master domain).
While at it also moved "Nmix_co2" and "radfixed" from callkeys_mod to radii_mod
since they are only used in that module.
EM

Location:
trunk/LMDZ.GENERIC
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/README

    r2899 r2954  
    17861786More code tidying: turn aeropacity, aeroptproperties, gfluxi, gfluxv,
    17871787sfluxi and sfluxv into modules.
     1788
     1789== 02/05/2023 == EM
     1790Improve diagnostics given by callcorrk (get min/max over whole globe, not
     1791just over the master domain).
     1792While at it also moved "Nmix_co2" and "radfixed" from callkeys_mod to radii_mod
     1793since they are only used in that module.
  • trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90

    r2899 r2954  
    4848      use generic_cloud_common_h, only: Psat_generic, epsi_generic
    4949      use generic_tracer_index_mod, only: generic_tracer_index
     50      use planetwide_mod, only: planetwide_maxval, planetwide_minval
    5051      implicit none
    5152
     
    220221!$OMP THREADPRIVATE(qvap_deep)
    221222
     223      REAL :: maxvalue,minvalue
     224
    222225!===============================================================
    223226!           I.a Initialization on first call
     
    449452         if ((iaer.eq.iaero_co2).and.tracer.and.(igcm_co2_ice.gt.0)) then ! Treat condensed co2 particles.
    450453            call co2_reffrad(ngrid,nlayer,nq,pq,reffrad(1,1,iaero_co2))
     454
     455            call planetwide_maxval(reffrad(:,:,iaero_co2),maxvalue)
     456            call planetwide_minval(reffrad(:,:,iaero_co2),minvalue)
    451457            if (is_master) then
    452                print*,'Max. CO2 ice particle size = ',maxval(reffrad(1:ngrid,1:nlayer,iaer))/1.e-6,' um'
    453                print*,'Min. CO2 ice particle size = ',minval(reffrad(1:ngrid,1:nlayer,iaer))/1.e-6,' um'
     458               print*,'Max. CO2 ice particle size = ',maxvalue/1.e-6,' um'
     459               print*,'Min. CO2 ice particle size = ',minvalue/1.e-6,' um'
    454460            end if
    455461         end if
     
    458464            call h2o_reffrad(ngrid,nlayer,pq(1,1,igcm_h2o_ice),pt, &
    459465                             reffrad(1,1,iaero_h2o),nueffrad(1,1,iaero_h2o))
     466           
     467            call planetwide_maxval(reffrad(:,:,iaero_h2o),maxvalue)
     468            call planetwide_minval(reffrad(:,:,iaero_h2o),minvalue)
    460469            if (is_master) then
    461                print*,'Max. H2O cloud particle size = ',maxval(reffrad(1:ngrid,1:nlayer,iaer))/1.e-6,' um'
    462                print*,'Min. H2O cloud particle size = ',minval(reffrad(1:ngrid,1:nlayer,iaer))/1.e-6,' um'
     470               print*,'Max. H2O cloud particle size = ',maxvalue/1.e-6,' um'
     471               print*,'Min. H2O cloud particle size = ',minvalue/1.e-6,' um'
     472            end if
     473
     474            call planetwide_maxval(nueffrad(:,:,iaero_h2o),maxvalue)
     475            call planetwide_minval(nueffrad(:,:,iaero_h2o),minvalue)
     476            if (is_master) then
     477               print*,'Max. H2O cloud particle variance = ',maxvalue
     478               print*,'Min. H2O cloud particle variance = ',minvalue
    463479            end if
    464480         endif
  • trunk/LMDZ.GENERIC/libf/phystd/callkeys_mod.F90

    r2871 r2954  
    3737      logical,save :: varactive
    3838      logical,save :: varfixed
    39       logical,save :: radfixed
    4039      logical,save :: sedimentation
    4140      logical,save :: generic_condensation
    4241      logical,save :: generic_rain
    43 !$OMP THREADPRIVATE(varactive,varfixed,radfixed,sedimentation,generic_condensation,generic_rain)
     42!$OMP THREADPRIVATE(varactive,varfixed,sedimentation,generic_condensation,generic_rain)
    4443      logical,save :: water ,watercond, waterrain, moistadjustment
    4544!$OMP THREADPRIVATE(water, watercond, waterrain, moistadjustment)
     
    104103!$OMP THREADPRIVATE(tplanckmin,tplanckmax,dtplanck)
    105104      real,save :: topdustref
    106       real,save :: Nmix_co2
    107105      real,save :: dusttau
    108106      real,save :: Fat1AU
    109107      real,save :: stelTbb
    110 !$OMP THREADPRIVATE(topdustref,Nmix_co2,dusttau,Fat1AU,stelTbb)
     108!$OMP THREADPRIVATE(topdustref,dusttau,Fat1AU,stelTbb)
    111109      real,save :: Tstrat
    112110      real,save :: tplanet
  • trunk/LMDZ.GENERIC/libf/phystd/inifis_mod.F90

    r2831 r2954  
    1111  use init_print_control_mod, only: init_print_control
    1212  use radinc_h, only: ini_radinc_h, naerkind
     13  use radii_mod, only: radfixed, Nmix_co2
    1314  use datafile_mod, only: datadir
    1415  use comdiurn_h, only: sinlat, coslat, sinlon, coslon
  • trunk/LMDZ.GENERIC/libf/phystd/radii_mod.F90

    r2831 r2954  
    33!==================================================================
    44!  module to centralize the radii calculations for aerosols
    5 ! OK for water but should be extended to other aerosols (CO2,...)
    65!==================================================================
    76     
    8 !     water cloud optical properties
    9 
    10       use callkeys_mod, only: radfixed,Nmix_co2
    11      
     7!     CO2 cloud properties (initialized in inifis)
     8      real,save :: Nmix_co2 ! Number mixing ratio of CO2 ice particles
     9
     10      ! flag to specify if we assume a constant fixed radius for particles
     11      logical,save :: radfixed ! initialized in inifis
     12
     13!     water cloud optical properties (initialized in su_aer_radii below)
    1214      real, save ::  rad_h2o
    1315      real, save ::  rad_h2o_ice
Note: See TracChangeset for help on using the changeset viewer.