-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OBC: H-dimensionality fixes #1170
Conversation
This patch fixes three dimensionality errors in the OBC segments. - We add a missing GV%m_to_H conversion for time-dependent eta segments. - The `adjustSegmentEtaToFitBathymetry` function depends on the `segment%Htot` field when computing the dz_src cell spacings. While the calculation primarily assumes that all quantities scale as Z, the segment%Htot field scales as H, which was causing dimensionality errors. We resolve this by converting Htot from Z to H whenever it is used in the calculation. - Segment barotropic velocitys based on transports were limited to a hard-coded thickness of 1e-12, which was not scaled. We have added H-dimensional scaling to these constants.
e337192
to
16a0a06
Compare
I did a force push to the commit log, which forgot to mention this third change:
|
Codecov Report
@@ Coverage Diff @@
## dev/gfdl #1170 +/- ##
============================================
- Coverage 46.08% 45.94% -0.14%
============================================
Files 214 224 +10
Lines 69399 70431 +1032
============================================
+ Hits 31984 32363 +379
- Misses 37415 38068 +653
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are both necessary and correct. They have passed all testing, including pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/10896. I am happy to approve these changes.
This patch fixes two dimensionality errors in the OBC segments.
We add a missing
GV%m_to_H
conversion for time-dependent eta segments.The
adjustSegmentEtaToFitBathymetry
function depends on thesegment%Htot
field when computing thedz_src
cell spacings.While the calculation primarily assumes that all quantities scale as
Z
, thesegment%Htot
field scales asH
, which was causingdimensionality errors.
We resolve this by converting
Htot
fromZ
toH
whenever it is used inthe calculation.