Skip to content

feat: Add clamping variables to MOM6, set vertical localization coord, vert interp#1033

Merged
hkershaw-brown merged 4 commits intomainfrom
mom6-clamp-variables
Mar 6, 2026
Merged

feat: Add clamping variables to MOM6, set vertical localization coord, vert interp#1033
hkershaw-brown merged 4 commits intomainfrom
mom6-clamp-variables

Conversation

@hkershaw-brown
Copy link
Member

@hkershaw-brown hkershaw-brown commented Jan 6, 2026

Description:

This pull request has MOM6 fixes:

  • Adds clamping variables to MOM6 model_mod.
    Uses parse_variables_clamp
    Requires breaking input.nml change if people are already using DART-MOM6. - release notes need to mention this.
    CESM3.0 is not released yet, but there are people using MOM6-DART.

  • sets vertical localization coord

  • Fixes vertical interpolation for thickness and psuedodepth methods

These are in separate commits, I can move to separate pull requests as needed.

Fixes issue

fixes #1028
see #1039 set_vertical_localization_coord is required for models doing vertical localization
fixes #1048
fixes #1047

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Documentation changes needed?

  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.

Tests

Please describe any tests you ran to verify your changes.
Running filter with clamping on.

Checklist for merging

  • Updated changelog entry
  • Documentation updated
  • Update conf.py

Checklist for release

  • Merge into main
  • Create release from the main branch with appropriate tag
  • Delete feature-branch

Testing Datasets

  • Dataset needed for testing available upon request
  • Dataset download instructions included
  • No dataset needed

@hkershaw-brown hkershaw-brown added the mom6 Modular Ocean Model label Jan 6, 2026
@hkershaw-brown
Copy link
Member Author

@hkershaw-brown add set_vertical see #1039

@hkershaw-brown
Copy link
Member Author

@hkershaw-brown also #1048 #1047

@hkershaw-brown
Copy link
Member Author

putting MOM6 set_vertical_localization_coordinate in MOM6 pull request.

doc & template model "fix" for #1039 going in separate pull request. Maybe code fix also. 🙃

@hkershaw-brown hkershaw-brown changed the title feat: add clamping variables to MOM6 feat: Add clamping variables to MOM6, set vertical localization coord Feb 19, 2026
@hkershaw-brown hkershaw-brown changed the title feat: Add clamping variables to MOM6, set vertical localization coord feat: Add clamping variables to MOM6, set vertical localization coord, vert interp Feb 20, 2026
@hkershaw-brown hkershaw-brown marked this pull request as ready for review February 20, 2026 19:57
Copy link
Contributor

@mjs2369 mjs2369 left a comment

Choose a reason for hiding this comment

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

Hi @hkershaw-brown these code changes all look good, sufficiently fixing issues #1047 #1039 (MOM6 only) #1028

@hkershaw-brown hkershaw-brown added the release! bundle with next release label Mar 4, 2026
only VERTISHEIGHT allowed, error if convert_vertical_state is called
with other vertical coordinate

see #1039 set_vertical_localization_coord is required for models
doing vertical localization
Include first layer thickness in thickness calculation. Fixes #1048
Correct fraction for psuedo depth. Fixes #1047
Assert observation vertical is VERTISHEIGHT
Assert which vert for convert_vertical_state is VERTISHEIGHT
@hkershaw-brown hkershaw-brown merged commit 9431d93 into main Mar 6, 2026
4 checks passed
@hkershaw-brown hkershaw-brown deleted the mom6-clamp-variables branch March 6, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mom6 Modular Ocean Model release! bundle with next release

Projects

None yet

2 participants