Changeset 5760


Ignore:
Timestamp:
Jul 4, 2025, 12:15:05 PM (8 hours ago)
Author:
lguez
Message:

Move the call to define_sw_albedo_intervals

Move the call to define_sw_albedo_intervals before the call to
rad_config%read. We avoid a double call to
radiation_config::consolidate_sw_albedo_intervals since, now,
define_sw_albedo_intervals is called before
radiation_interface::setup_radiation, so this%is_consolidated in
define_sw_albedo_intervals is false. Also, the values of shortwave
albedo bounds defined by define_sw_albedo_intervals are now default
values and we avoid silenlty overwriting the values of
sw_albedo_wavelength_bound and i_sw_albedo_index chosen by the
user in the namelist. Note that this new ordering of statements is the
same than in file ecrad/ifs/radiation_setup.F90.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/ecrad/lmdz/radiation_setup.f90

    r5759 r5760  
    108108         &   4 /)
    109109
    110     ! AI ATTENTION (parameters read in namelist file)
    111     !    file_name="namelist_ecrad"
    112     call rad_config%read(file_name=file_name)
    113     call driver_config%read(file_name)
    114     call rad_config%print(iverbose = 2)
    115 
    116     ! Use configuration data to set-up radiation scheme, including
    117     ! reading scattering datafiles
    118     CALL setup_radiation(rad_config)
    119 
    120110    ! Populate the mapping between the 14 RRTM shortwave bands and the
    121111    ! 6 albedo inputs. The mapping according to the stated wavelength
     
    136126    !!         &  (/ 8.0e-6_jprb,13.0e-6_jprb /),  (/ 1,2,1 /))
    137127
     128    ! AI ATTENTION (parameters read in namelist file)
     129    !    file_name="namelist_ecrad"
     130    call rad_config%read(file_name=file_name)
     131    call driver_config%read(file_name)
     132    call rad_config%print(iverbose = 2)
     133
     134    ! Use configuration data to set-up radiation scheme, including
     135    ! reading scattering datafiles
     136    CALL setup_radiation(rad_config)
     137
    138138    !    ! Get spectral weightings for UV and PAR
    139139    call rad_config%get_sw_weights(0.2e-6_jprb, 0.4415e-6_jprb, &
Note: See TracChangeset for help on using the changeset viewer.