Skip to content

Supplemental SAD - #10

Merged
fvitt merged 5 commits into
fvitt:aerosol_sadfrom
jimmielin:aerosol_sad
Aug 6, 2026
Merged

Supplemental SAD#10
fvitt merged 5 commits into
fvitt:aerosol_sadfrom
jimmielin:aerosol_sad

Conversation

@jimmielin

Copy link
Copy Markdown

Also set beglev based on the old waccm cutoff (old zero_aerosols ...)

I also threaded through pi into aerosol_state so it does not depend on mo_constants, will be helpful for when we port to CAM-SIMA.

I made supplemental_surf_area_dens check nitrate and s-organic, so the namelist option will still behave as usual.

Regression tests running now. I think because the SAD order is rearranged for FMOZ it'll still have an answer difference, but it includes everything now.

@fvitt

fvitt commented Jul 28, 2026

Copy link
Copy Markdown
Owner

@jimmielin Thanks for this -- looks great a first glance. I will look at it in more detail and do a quick BAM test and compare with non-refactored version.

!------------------------------------------------------------------------
subroutine aero_surf_area_dens(self, aero_props, types_list, ncol, nlev, beglev, endlev, &
relhum, pmid, temp, sad, reff, sfc, dm_aer)
relhum, pmid, temp, pi, sad, reff, sfc, dm_aer)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@jimmielin Is there a need to pass the constant pi through the interface?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks for the question! Yes, I am trying to avoid introducing dependencies on host modules (e.g. physconst) so the abstract interface can be ported to other models in the future.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I see.

@fvitt
fvitt merged commit 6c36e30 into fvitt:aerosol_sad Aug 6, 2026
2 checks passed
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.

2 participants