Ignore:
Timestamp:
Mar 19, 2024, 3:34:21 PM (2 months ago)
Author:
idelkadi
Message:

Ecrad update in LMDZ / Implementation of Ecrad double call in LMDZ

  • version 1.6.1 (commit 210d7911380f53a788c3cad73b3cf9b4e022ef87)
  • interface routines between lmdz and ecrad grouped in a new "lmdz" directory
  • double call method redesigned so as to go through the Ecrad initialization and configuration part only once for the entire simulation
  • clean-up in the read.F routine: delete unitules arguments
  • modification of default gas model in namelist (default: ECCKD)
File:
1 edited

Legend:

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

    r4773 r4853  
    7575    ! Allocate structures
    7676    if (config%do_sw) then
    77       if (allocated(config%cloud_optics_sw)) deallocate(config%cloud_optics_sw)     
    7877      allocate(config%cloud_optics_sw(config%n_cloud_types))
    7978    end if
    8079
    8180    if (config%do_lw) then
    82       if (allocated(config%cloud_optics_lw)) deallocate(config%cloud_optics_lw)     
    8381      allocate(config%cloud_optics_lw(config%n_cloud_types))
    8482    end if
     
    172170    real(jprb), dimension(istartcol:iendcol,nlev) :: water_path
    173171
    174     integer :: jtype, jcol, jlev
     172    integer :: jtype, jcol, jlev, jg
    175173
    176174    real(jphook) :: hook_handle
     
    275273          if (cloud%fraction(jcol,jlev) > 0.0_jprb) then
    276274            ! Scale to get asymmetry factor and single scattering albedo
    277             g_sw_cloud(:,jlev,jcol) = g_sw_cloud(:,jlev,jcol) &
    278                  &  / max(ssa_sw_cloud(:,jlev,jcol), 1.0e-15_jprb)
    279             ssa_sw_cloud(:,jlev,jcol) = ssa_sw_cloud(:,jlev,jcol) &
    280                  &  / max(od_sw_cloud(:,jlev,jcol),  1.0e-15_jprb)
     275            do jg = 1, config%n_bands_sw
     276              g_sw_cloud(jg,jlev,jcol) = g_sw_cloud(jg,jlev,jcol) &
     277                 &  / max(ssa_sw_cloud(jg,jlev,jcol), 1.0e-15_jprb)
     278              ssa_sw_cloud(jg,jlev,jcol) = ssa_sw_cloud(jg,jlev,jcol) &
     279                 &  / max(od_sw_cloud(jg,jlev,jcol),  1.0e-15_jprb)
     280            end do
    281281          end if
    282282        end do
Note: See TracChangeset for help on using the changeset viewer.