Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check use_aerosols with lw_aerosol_scattering #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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