Scale tideamp to L/T instead of Z/T#1087
Conversation
breichl
commented
Apr 15, 2026
- Setting BBL_USE_TIDAL_BG = True causes the model to fail dimensional consistency test. If you set the spatial scale as m_to_L instead of m_to_Z in MOM_set_viscosity it fixes the issue.
|
I have examined the code related to this change, and I agree with it, but the comment describing the units of |
|
Got it. Thanks for looking at this and catching that, @Hallberg-NOAA! |
- Setting BBL_USE_TIDAL_BG = True causes the model to fail dimensional consistency test. If you set the spatial scale as m_to_L instead of m_to_Z in MOM_set_viscosity it fixes the issue.
843db3c to
86f8136
Compare
There was a problem hiding this comment.
Pull request overview
Fixes a dimensional-scaling inconsistency when BBL_USE_TIDAL_BG = True by ensuring tidal amplitude input is scaled as a horizontal velocity (L/T) rather than a vertical velocity (Z/T), resolving the dimensional consistency test failure described in the PR.
Changes:
- Update
tideampunits annotation to[L T-1]to reflect a horizontal velocity. - Rescale
tideampinput read fromUS%m_to_Z*US%T_to_stoUS%m_to_L*US%T_to_sinset_visc_init.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Change suggested Hallberg Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
adcroft
left a comment
There was a problem hiding this comment.
Tested and passed at https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/30583.
Handling merge on the command line so we can avoid a modified commit message
|
Thie PR was merged manually in c925265 |