Skip to content

Convert the BareGroundFluxesMod dewpoint calculation into a function#3706

Open
olyson wants to merge 1 commit intoESCOMP:b4b-devfrom
olyson:dewpointfunction
Open

Convert the BareGroundFluxesMod dewpoint calculation into a function#3706
olyson wants to merge 1 commit intoESCOMP:b4b-devfrom
olyson:dewpointfunction

Conversation

@olyson
Copy link
Contributor

@olyson olyson commented Jan 22, 2026

Description of changes

Convert the BareGroundFluxesMod dewpoint calculation into a function

Specific notes

Per a discussion we had about modularizing new code, I decided to see how long it would take me to convert the dewpoint calculation recently incorporated into BareGroundFluxesMod (#3688) into a function (not long). Interestingly, the version of BareGroundFluxesMod presented here is actually what @hannay is using as a SourceMod in new CESM3 development simulations. I had pointed her to my branch instead of a separate location for the code mods.

Contributors other than yourself, if any: @ekluzek for suggestion to convert to a function

CTSM Issues Fixed (include github issue #): Addresses in part #3694

Are answers expected to change (and if so in what way)? No.

Any User Interface Changes (namelist or namelist defaults changes)? No

Does this create a need to change or add documentation? Did you do so? No. No.

Testing performed, if any:
This function is bfb with previous tests related to #3688, at least for a 1 year I2000 SP case.

@olyson olyson added the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label Jan 22, 2026
@wwieder wwieder added the bfb bit-for-bit label Jan 28, 2026
@@ -559,4 +544,38 @@ subroutine BareGroundFluxes(bounds, num_noexposedvegp, filter_noexposedvegp, &

end subroutine BareGroundFluxes
Copy link
Contributor

Choose a reason for hiding this comment

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

Way to go @olyson, this seems to be a b4b refactor that cleans up the code by creating a function for dew and frost over bare ground. Assuming this is really b4b can we just merge the PR to b4b_dev?

! DESCRIPTION:
! Calculates dewpoint (degK) from input vapor pressure
! Uses Equation 7 from Lawrence 2005, https://doi.org/10.1175/BAMS-86-2-225

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we also need to update our documentation to reflect this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will open an issue for the documentation. I'll also open an issue to document #3643

@wwieder
Copy link
Contributor

wwieder commented Jan 28, 2026

as with #3710, what's an appropriate milestone here alpha08d or beta09?

@wwieder wwieder moved this to In progress - b4b-dev in CTSM: Upcoming tags Jan 29, 2026
@ekluzek ekluzek changed the base branch from master to b4b-dev February 3, 2026 19:47
@wwieder
Copy link
Contributor

wwieder commented Feb 3, 2026

@ekluzek this one didn't come up in our sprint conversation today, but is it a simple task you can merge to b4b-dev?

@wwieder
Copy link
Contributor

wwieder commented Feb 5, 2026

@ekluzek this one didn't come up in our sprint conversation today, but is it a simple task you can merge to b4b-dev?

just reposting this question. @ekluzek can you do this mege to b4b-dev?

@wwieder wwieder removed the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label Feb 5, 2026
@wwieder wwieder added this to the cesm3_0_beta09 milestone Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bfb bit-for-bit

Projects

Status: In progress - b4b-dev
Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants