Changeset 4517 for LMDZ6/trunk


Ignore:
Timestamp:
Apr 24, 2023, 4:29:40 PM (20 months ago)
Author:
lguez
Message:

Bug fix: correct SW properties of aerosols

The values are correct in the input NetCDF file but they were assigned
to the wrong variables in ECRad, so shortwave properties of aerosols
were completely wrong. This bug comes from commit r4182.

Location:
LMDZ6/trunk/libf/phylmd/ecrad
Files:
2 edited

Legend:

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

    r4489 r4517  
    437437    call nf95_inq_varid(grpid, "single_scat_alb", varid)
    438438    call nf95_gw_var(grpid, varid, ao%ssa_sw_philic)
    439     ao%g_sw_philic = cshift(ao%ssa_sw_philic, 1)
     439    ao%ssa_sw_philic = cshift(ao%ssa_sw_philic, 1)
    440440    call nf95_inq_varid(grpid, "mass_ext", varid)
    441441    call nf95_gw_var(grpid, varid, ao%mass_ext_sw_philic)
    442     ao%g_sw_philic = cshift(ao%mass_ext_sw_philic, 1)
     442    ao%mass_ext_sw_philic = cshift(ao%mass_ext_sw_philic, 1)
    443443
    444444    ! Hydrophilic/Monochromatic:
     
    463463    call nf95_inq_varid(grpid, "single_scat_alb", varid)
    464464    call nf95_gw_var(grpid, varid, ao%ssa_sw_phobic)
    465     ao%g_sw_phobic = cshift(ao%ssa_sw_phobic, 1)
     465    ao%ssa_sw_phobic = cshift(ao%ssa_sw_phobic, 1)
    466466    call nf95_inq_varid(grpid, "mass_ext", varid)
    467467    call nf95_gw_var(grpid, varid, ao%mass_ext_sw_phobic)
    468     ao%g_sw_phobic = cshift(ao%mass_ext_sw_phobic, 1)
     468    ao%mass_ext_sw_phobic = cshift(ao%mass_ext_sw_phobic, 1)
    469469! AI ATTENTION   
    470470    call nf95_inq_varid(grpid, "wavenumber", varid)
  • LMDZ6/trunk/libf/phylmd/ecrad/setup_aerosol_optics_lmdz_m.F90

    r4489 r4517  
    6969    call nf95_inq_varid(grpid, "single_scat_alb", varid)
    7070    call nf95_gw_var(grpid, varid, ao%ssa_sw_philic)
    71     ao%g_sw_philic = cshift(ao%ssa_sw_philic, 1)
     71    ao%ssa_sw_philic = cshift(ao%ssa_sw_philic, 1)
    7272    call nf95_inq_varid(grpid, "mass_ext", varid)
    7373    call nf95_gw_var(grpid, varid, ao%mass_ext_sw_philic)
    74     ao%g_sw_philic = cshift(ao%mass_ext_sw_philic, 1)
     74    ao%mass_ext_sw_philic = cshift(ao%mass_ext_sw_philic, 1)
    7575
    7676    ! Hydrophilic/Monochromatic:
     
    9595    call nf95_inq_varid(grpid, "single_scat_alb", varid)
    9696    call nf95_gw_var(grpid, varid, ao%ssa_sw_phobic)
    97     ao%g_sw_phobic = cshift(ao%ssa_sw_phobic, 1)
     97    ao%ssa_sw_phobic = cshift(ao%ssa_sw_phobic, 1)
    9898    call nf95_inq_varid(grpid, "mass_ext", varid)
    9999    call nf95_gw_var(grpid, varid, ao%mass_ext_sw_phobic)
    100     ao%g_sw_phobic = cshift(ao%mass_ext_sw_phobic, 1)
     100    ao%mass_ext_sw_phobic = cshift(ao%mass_ext_sw_phobic, 1)
    101101
    102102    ! Hydrophobic/Monochromatic:
Note: See TracChangeset for help on using the changeset viewer.