Skip to content

Changes needed for CAM computing enthalpy -> mediator -> BLOM#675

Merged
TomasTorsvik merged 11 commits into
NorESMhub:masterfrom
mvertens:feature/cam_computes_enthalpy
Oct 14, 2025
Merged

Changes needed for CAM computing enthalpy -> mediator -> BLOM#675
TomasTorsvik merged 11 commits into
NorESMhub:masterfrom
mvertens:feature/cam_computes_enthalpy

Conversation

@mvertens
Copy link
Copy Markdown
Contributor

@mvertens mvertens commented Oct 8, 2025

This PR superceded PR #618

With this PR, enthalpy flux as required for energy consistency with atmospheric water exchange is added to the non-solar heat flux field. Various methods for distributing the enthalpy flux components are available, and the current (hard-coded) method distributes the total enthalpy flux evenly over the sea-ice free ocean domain. This is based on an implementation of Tomas Toniazzo.

BLOM receives a new config variable- component_computes_enthalpy_flux - in the NUOPC cap and if this variable is atm then BLOM that triggers the receiving of enthalpy from CAM via the mediator. If this is none then enthalpy fluxes will not be received from the mediator.

Testing:
This PR does not effect stand-alone BLOM tests. Tested that aux_blom_noresm compared successfully versus noresm3_0_beta03a baselines (using CMEPS PR below).

For the enthalpy configuration to be triggered

Copy link
Copy Markdown
Contributor

@TomasTorsvik TomasTorsvik left a comment

Choose a reason for hiding this comment

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

I'm not able to review this in detail, but I assume the general idea here is that BLOM should be able to receive fields coming from CAM, but that there should not be any changes in the BLOM state.

@matsbn
Copy link
Copy Markdown
Contributor

matsbn commented Oct 9, 2025

Thanks, @mvertens!

One thing that I expect would fail when merging with the current master is the call to chksummsk in drivers/nuopc/ocn_import_export.F90. With the revised checksum functionality, only subroutine chksum now exists.

@mvertens mvertens marked this pull request as ready for review October 10, 2025 18:11
@mvertens
Copy link
Copy Markdown
Contributor Author

@matsbn @TomasTorsvik - testing on this PR showed bfb results with noresm3_0_beta03a - so I think this PR is ready at this point.

Copy link
Copy Markdown
Contributor

@matsbn matsbn left a comment

Choose a reason for hiding this comment

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

Looks good. Can this be merged independently of the other enthalpy related PRs, @mvertens?

@mvertens
Copy link
Copy Markdown
Contributor Author

@matsbn - yes this should be able to be merged independently.

@TomasTorsvik
Copy link
Copy Markdown
Contributor

I can merge this.

@TomasTorsvik TomasTorsvik self-assigned this Oct 14, 2025
@TomasTorsvik TomasTorsvik merged commit 6c425d3 into NorESMhub:master Oct 14, 2025
4 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in NorESM Development Oct 14, 2025
@TomasTorsvik
Copy link
Copy Markdown
Contributor

@mvertens , @matsbn
A tag v1.12.8 is now available with this update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants