Ignore:
Timestamp:
Jun 29, 2022, 9:23:14 AM (2 years ago)
Author:
idelkadi
Message:

Implementation of the Ecrad radiative transfer code in the LMD model (continued) :
Integration of aerosols (direct effect)

Location:
LMDZ6/branches/LMDZ_ECRad/libf/phylmd/ecrad
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/LMDZ_ECRad/libf/phylmd/ecrad/radiation_aerosol_optics.F90

    r4182 r4188  
    8989         &  IAerosolClassUndefined,   IAerosolClassIgnored, &
    9090         &  IAerosolClassHydrophobic, IAerosolClassHydrophilic
     91    USE phys_local_var_mod, ONLY: rhcl
    9192
    9293    integer, intent(in) :: nlev               ! number of model levels
     
    187188      end if
    188189
    189       call gas%get(IH2O, IMassMixingRatio, h2o_mmr, istartcol=istartcol)
     190!AI juin 2022     
     191      !call gas%get(IH2O, IMassMixingRatio, h2o_mmr, istartcol=istartcol)
    190192
    191193      ! Loop over position
     
    195197          ! saturation and the index to the relative-humidity index of
    196198          ! hydrophilic-aerosol data
    197           rh  = h2o_mmr(jcol,jlev) / thermodynamics%h2o_sat_liq(jcol,jlev)
    198           irh = ao%calc_rh_index(rh)
     199! AI juin 2022         
     200!          rh  = h2o_mmr(jcol,jlev) / thermodynamics%h2o_sat_liq(jcol,jlev)
     201!          irh = ao%calc_rh_index(rh)
     202          irh = ao%calc_rh_index(rhcl(jcol,jlev))
     203!          print*,'irh=',irh
    199204
    200205          factor = ( thermodynamics%pressure_hl(jcol,jlev+1) &
  • LMDZ6/branches/LMDZ_ECRad/libf/phylmd/ecrad/radiation_scheme.F90

    r4115 r4188  
    1313SUBROUTINE RADIATION_SCHEME &
    1414! Inputs
    15      & (KIDIA, KFDIA, KLON, KLEV, KAEROLMDZ, NSW, &
     15     & (KIDIA, KFDIA, KLON, KLEV, KAEROSOL, NSW, &
    1616     &  IDAY, TIME, &
    1717     &  PSOLAR_IRRADIANCE, &
     
    117117INTEGER(KIND=JPIM),INTENT(IN) :: KLEV     ! Number of levels
    118118!INTEGER, INTENT(IN) :: KLON, KLEV
    119 INTEGER(KIND=JPIM),INTENT(IN) :: KAEROLMDZ ! Number of aerosol types
     119!INTEGER(KIND=JPIM),INTENT(IN) :: KAEROLMDZ ! Number of aerosol types
     120INTEGER(KIND=JPIM),INTENT(IN) :: KAEROSOL
    120121INTEGER(KIND=JPIM),INTENT(IN) :: NSW ! Numbe of bands
    121122
    122123! AI ATTENTION
    123 INTEGER, PARAMETER :: KAEROSOL = 12
     124!INTEGER, PARAMETER :: KAEROSOL = 12
    124125
    125126! *** Single-level fields
     
    313314if (lprint_input) then
    314315  print*,'********** Verification des entrees *************'
    315   print*,'KIDIA, KFDIA, KLON, KLEV, KAEROLMDZ, NSW =', &
    316         KIDIA, KFDIA, KLON, KLEV, KAEROLMDZ, NSW
     316  print*,'KIDIA, KFDIA, KLON, KLEV, KAEROSOL, NSW =', &
     317        KIDIA, KFDIA, KLON, KLEV, KAEROSOL, NSW
    317318  print*,'IDAY, TIME =', IDAY, TIME
    318319  print*,'PSOLAR_IRRADIANCE =', PSOLAR_IRRADIANCE
     
    510511
    511512print*,'******** AEROSOLS (allocate + input) **************************************'
    512 IF (NAERMACC > 0) THEN
     513!IF (NAERMACC > 0) THEN
    513514  CALL aerosol%allocate(KLON, 1, KLEV, KAEROSOL) ! MACC climatology
    514 ELSE
    515   CALL aerosol%allocate(KLON, 1, KLEV, 6) ! Tegen climatology
    516 ENDIF
     515!ELSE
     516!  CALL aerosol%allocate(KLON, 1, KLEV, 6) ! Tegen climatology
     517!ENDIF
    517518! Compute the dry mass of each layer neglecting humidity effects, in
    518519! kg m-2, needed to scale some of the aerosol inputs
  • LMDZ6/branches/LMDZ_ECRad/libf/phylmd/ecrad/radiation_setup.F90

    r4115 r4188  
    238238      ! hydrophobic black carbon, 11 ammonium sulphate, 12 inactive
    239239      ! SO2
    240       rad_config%n_aerosol_types = 12
    241       if (lprint_setp) then
    242         print*,'rad_config%n_aerosol_types =', rad_config%n_aerosol_types
    243       endif
     240!      rad_config%n_aerosol_types = 12
     241!      if (lprint_setp) then
     242!        print*,'rad_config%n_aerosol_types =', rad_config%n_aerosol_types
     243!      endif
    244244
    245245      ! Indices to the aerosol optical properties in
     
    247247      ! index hydrophilic aerosol types and positive numbers index
    248248      ! hydrophobic aerosol types
    249       rad_config%i_aerosol_type_map = 0 ! There can be up to 256 types
     249!      rad_config%i_aerosol_type_map = 0 ! There can be up to 256 types
    250250!      if (lprint_setp) then
    251251!        print*,'rad_config%i_aerosol_type_map =', rad_config%i_aerosol_type_map
    252252!      endif
    253253
    254       rad_config%i_aerosol_type_map(1:12) = (/ &
    255            &  -1, &  ! Sea salt, size bin 1 (OPAC)
    256            &  -2, &  ! Sea salt, size bin 2 (OPAC)
    257            &  -3, &  ! Sea salt, size bin 3 (OPAC)
    258            &   7, &  ! Desert dust, size bin 1 (Woodward 2001)
    259            &   8, &  ! Desert dust, size bin 2 (Woodward 2001)
    260            &   9, &  ! Desert dust, size bin 3 (Woodward 2001)
    261            &  -4, &  ! Hydrophilic organic matter (OPAC)
    262            &  10, &  ! Hydrophobic organic matter (OPAC)
    263            &  11, &  ! Black carbon (Boucher)
    264            &  11, &  ! Black carbon (Boucher)
    265            &  -5, &  ! Ammonium sulphate (OPAC)
    266            &  14 /)  ! Stratospheric sulphate (hand edited from OPAC)
     254!      rad_config%i_aerosol_type_map(1:12) = (/ &
     255!           &  -1, &  ! Sea salt, size bin 1 (OPAC)
     256!           &  -2, &  ! Sea salt, size bin 2 (OPAC)
     257!           &  -3, &  ! Sea salt, size bin 3 (OPAC)
     258!           &   7, &  ! Desert dust, size bin 1 (Woodward 2001)
     259!           &   8, &  ! Desert dust, size bin 2 (Woodward 2001)
     260!           &   9, &  ! Desert dust, size bin 3 (Woodward 2001)
     261!           &  -4, &  ! Hydrophilic organic matter (OPAC)
     262!           &  10, &  ! Hydrophobic organic matter (OPAC)
     263!           &  11, &  ! Black carbon (Boucher)
     264!           &  11, &  ! Black carbon (Boucher)
     265!           &  -5, &  ! Ammonium sulphate (OPAC)
     266!           &  14 /)  ! Stratospheric sulphate (hand edited from OPAC)
    267267!     if (lprint_setp) then
    268268!       print*,'rad_config%i_aerosol_type_map =', rad_config%i_aerosol_type_map
     
    433433         &  'photosynthetically active radiation, PAR')
    434434
     435     rad_config%i_aerosol_type_map(1:13) = (/ &
     436           &  -1, &  ! Sea salt, size bin 1 (OPAC)
     437           &  -2, &  ! Sea salt, size bin 2 (OPAC)
     438           &  -3, &  ! Sea salt, size bin 3 (OPAC)
     439           &  -4, &  ! Hydrophilic organic matter (OPAC)
     440           &  -5, &  ! Ammonium sulphate (OPAC)
     441           &  -6, &
     442           &  -7, &
     443           &   1, &
     444           &   2, &
     445           &   3, &
     446           &  -8, &
     447           &  -9, &
     448           &   4 /)  ! Stratospheric sulphate (hand edited from OPAC)
     449   rad_config%aerosol_optics_override_file_name = 'aerosol_optics_lmdz.nc'
     450
    435451!    IF (YRERAD%NAERMACC > 0) THEN
    436452      ! With the MACC aerosol climatology we need to add in the
Note: See TracChangeset for help on using the changeset viewer.