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

Refactor optional concentration_scaling in ecckd #27

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

Conversation

drieg
Copy link
Contributor

@drieg drieg commented Oct 10, 2024

  • Reduce the number of IF (PRESENT(concentration_scaling)) checks
  • Introduce concentration_scaling also for the vectorized version calc_optical_depth_ckd_model_vec

@FussyDuck
Copy link

FussyDuck commented Oct 10, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@reuterbal reuterbal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the delay, conceptually this looks great and I'll test this locally before merging.

@@ -456,7 +456,7 @@ end subroutine read_spectral_solar_cycle
! at nlev layers
subroutine calc_optical_depth_ckd_model(this, ncol, nlev, istartcol, iendcol, nmaxgas, &
& pressure_hl, temperature_fl, mole_fraction_fl, &
& optical_depth_fl, rayleigh_od_fl, concentration_scaling)
& optical_depth_fl, rayleigh_od_fl, opt_concentration_scaling)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer not to change the interface, i.e., keep the name concentration_scaling here - the opt_ prefix is not used elsewhere for optional arguments either.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Let me know if your local tests were successful, then I can perform this change. Any preferences for the naming of the local variable (currently concentration_scaling)?

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.

3 participants