-
Notifications
You must be signed in to change notification settings - Fork 59
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
+MOM_wave_speed cleanup #304
+MOM_wave_speed cleanup #304
Conversation
Added or amended comments to document the units of numerous internal variables and function arguments in MOM_wave_speed.F90. Only comments are changed, but the position of some variable declarations is changed to help the comments make more sense. All answers are bitwise identical and no output is changed.
Made the CS argument mandatory for wave_speeds and added the new runtime parameter INTERNAL_WAVE_CG1_THRESH to specify the threshold first mode internal below which all higher mode speeds are reported as 0, replacing a previously hard-coded dimensional value. As a result of this change there is a new waves_CS element in diabatic_CS and a call to wave_speed_init from diabatic_driver_init. By default, all answers are bitwise identical, but there is a new entry in some MOM_parameter_doc files that have INTERNAL_TIDES=True.
Codecov Report
@@ Coverage Diff @@
## dev/gfdl #304 +/- ##
============================================
- Coverage 37.14% 37.10% -0.04%
============================================
Files 263 263
Lines 73720 73799 +79
Branches 13738 13754 +16
============================================
Hits 27384 27384
- Misses 41276 41354 +78
- Partials 5060 5061 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
LGTM! updated code works!
Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/18012 ✔️ |
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.
Approved on behalf of @raphaeldussin
This PR includes a pair of commits that expand the documentation of the internal variables and their units in the MOM_wave_speed module, and then adds a new runtime parameter, INTERNAL_WAVE_CG1_THRESH, to set a previously hard coded dimensional value for the threshold a first mode speed below which all higher mode speeds are simply given a speed of 0. By default, all answers are bitwise identical, but there is a new entry in the MOM_parameter_doc files for some cases.
The commits in this PR include: