Skip to content

Conversation

@lguez
Copy link
Contributor

@lguez lguez commented Jan 16, 2025

Check use_aerosols in addition to lw_aerosol_scattering. In principle, this does not change anything because, if config%use_aerosols is false then the single-scattering albedo of aerosols is set to 0 so the results of the two branches, calc_no_scattering_transmittance_lw +
calc_fluxes_no_scattering_lw, and calc_ref_trans_lw + adding_ica_lw, is the same. In practice, the results are not exactly equal. This is surprising for the user, who expects that the setting of config%do_lw_aerosol_scattering can be disregarded if config%use_aerosols is false. Moreover, if config%use_aerosols is false, we want to go to the faster calculation,
calc_no_scattering_transmittance_lw +
calc_fluxes_no_scattering_lw.

Check `use_aerosols` in addition to `lw_aerosol_scattering`. In
principle, this does not change anything because, if
`config%use_aerosols` is false then the single-scattering albedo of
aerosols is set to 0 so the results of the two branches,
`calc_no_scattering_transmittance_lw` +
`calc_fluxes_no_scattering_lw`, and `calc_ref_trans_lw` +
`adding_ica_lw`, is the same. In practice, the results are not exactly
equal. This is surprising for the user, who expects that the setting
of `config%do_lw_aerosol_scattering` can be disregarded if
`config%use_aerosols` is false. Moreover, if `config%use_aerosols` is
false, we want to go to the faster calculation,
`calc_no_scattering_transmittance_lw` +
`calc_fluxes_no_scattering_lw`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant