Skip to content

Conversation

@adcroft
Copy link
Member

@adcroft adcroft commented Dec 22, 2025

Five vertically integrated diagnostics are requested in CMIP7. These ultimately are to be for four vertical intervals (0-300m, 300-700m, etc.) but we will handle that through addition of a 4-level diagnostic grid, configured at run-time. This commit handles the conversion from temperature or salt to heat content or salt content (by mass) and registers a "vertically extensive" quantity so that the diagnostics know to re-integrate rather than remap.

Changes:

  • Added diagnostics absscint, pfscint, scint, chcint and phcint
  • Moved registration of temp_int and salt_int to within an existing if (use_temperature) block
  • Made public 2 GSW conversion functions in MOM_EOS

Partially addresses #987

This PR will likely have a conflict with #1001 which I'll resolve when that is accepted

@adcroft adcroft added the enhancement New feature or request label Dec 22, 2025
Copy link
Member

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

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

Apart from one extra module use declaration, this PR seems correct to me.

Five vertically integrated diagnostics are requested in CMIP7. These
ultimately are to be for four vertical intervals (0-300m, 300-700m, etc.)
but we will handle that through addition of a 4-level diagnostic grid,
configured at run-time. This commit handles the conversion from temperature
or salt to heat content or salt content (by mass) and registers a
"vertically extensive" quantity so that the diagnostics know to re-integrate
rather than remap.

Changes:
- Added diagnostics absscint, pfscint, scint, chcint and phcint
- Moved registration of temp_int and salt_int to within an existing
  `if (use_temperature)` block
- Made public 2 GSW conversion functions in MOM_EOS
@Hallberg-NOAA
Copy link
Member

This PR has passed pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/29657 with the expected warnings about new diagnostics.

@Hallberg-NOAA Hallberg-NOAA merged commit 7ee13cd into NOAA-GFDL:dev/gfdl Dec 27, 2025
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants