Skip to content
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

Merged
merged 3 commits into from
Jan 18, 2023

Conversation

Hallberg-NOAA
Copy link
Member

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:

  • e469e984c +Add runtime parameter INTERNAL_WAVE_CG1_THRESH
  • cd7a47b6b Document units of variables in MOM_wave_speed

  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.
@Hallberg-NOAA Hallberg-NOAA added documentation Improvements or additions to documentation Parameter change Input parameter changes (addition, removal, or description) labels Jan 9, 2023
@codecov
Copy link

codecov bot commented Jan 9, 2023

Codecov Report

Merging #304 (1182b8d) into dev/gfdl (4be437a) will decrease coverage by 0.04%.
The diff coverage is 17.64%.

❗ Current head 1182b8d differs from pull request most recent head 78b7005. Consider uploading reports for the commit 78b7005 to get more accurate results

@@             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     
Impacted Files Coverage Δ
...parameterizations/vertical/MOM_diabatic_driver.F90 46.31% <0.00%> (-0.07%) ⬇️
src/diagnostics/MOM_wave_speed.F90 44.28% <21.42%> (-0.09%) ⬇️
src/tracer/advection_test_tracer.F90 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link

@raphaeldussin raphaeldussin left a 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!

@marshallward
Copy link
Member

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/18012 ✔️

Copy link
Member

@marshallward marshallward left a 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

@marshallward marshallward merged commit b9daf2f into NOAA-GFDL:dev/gfdl Jan 18, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the wave_speeds_cleanup branch February 2, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Parameter change Input parameter changes (addition, removal, or description)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants