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

+Correct units in 1 get_param call and 64 comments #327

Merged

Conversation

Hallberg-NOAA
Copy link
Member

@Hallberg-NOAA Hallberg-NOAA commented Feb 17, 2023

Corrected the units in the get_param call for WAVE_HEIGHT_SCALE_FACTOR, and corrected the units descriptions in comments of 22 wind stress related variables in 6 driver routines, from [R L Z T-1 ~> Pa] to [R L Z T-2 ~> Pa], but the actual conversion factors in the code are correct. Also fixed 42 other inconsistent units in comments in 28 files scattered throughout the MOM6 code. WAVE_HEIGHT_SCALE_FACTOR was added in December 2022 as a part of PR #289 to dev/gfdl. These inconsistent units were detected because they do not match the patterns of other valid units; most are recent additions. Apart from a single unit in a get_param call, only comments are changed, and all answers are bitwise identical.

@codecov
Copy link

codecov bot commented Feb 17, 2023

Codecov Report

Merging #327 (0e17578) into dev/gfdl (5f62858) will increase coverage by 0.00%.
The diff coverage is 18.18%.

❗ Current head 0e17578 differs from pull request most recent head 9e79541. Consider uploading reports for the commit 9e79541 to get more accurate results

@@            Coverage Diff            @@
##           dev/gfdl     #327   +/-   ##
=========================================
  Coverage     37.16%   37.16%           
=========================================
  Files           265      265           
  Lines         74508    74508           
  Branches      13839    13839           
=========================================
+ Hits          27689    27692    +3     
+ Misses        41725    41723    -2     
+ Partials       5094     5093    -1     
Impacted Files Coverage Δ
...g_src/drivers/solo_driver/MESO_surface_forcing.F90 0.00% <ø> (ø)
...ig_src/drivers/solo_driver/MOM_surface_forcing.F90 24.52% <0.00%> (ø)
...g_src/drivers/solo_driver/user_surface_forcing.F90 0.00% <ø> (ø)
src/ALE/MOM_hybgen_remap.F90 0.00% <0.00%> (ø)
src/core/MOM.F90 51.41% <ø> (ø)
src/core/MOM_continuity_PPM.F90 72.54% <ø> (ø)
src/core/MOM_forcing_type.F90 42.17% <ø> (ø)
src/core/MOM_variables.F90 46.96% <ø> (ø)
src/equation_of_state/MOM_EOS.F90 23.55% <ø> (ø)
src/equation_of_state/MOM_EOS_linear.F90 20.94% <ø> (ø)
... and 19 more

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

  Corrected the units in the get_param call for WAVE_HEIGHT_SCALE_FACTOR, and
corrected the units descriptions in comments of 22 wind stress related variables
in 6 driver routines, from [R L Z T-1 ~> Pa] to [R L Z T-2 ~> Pa], but the
actual conversion factors in the code are correct.  Also fixed 42 other
inconsistent units in comments in 28 files scattered throughout the MOM6 code.
WAVE_HEIGHT_SCALE_FACTOR was added in December 2022 as a part of PR mom-ocean#289 to
dev/gfdl. These inconsistent units were detected because they do not match the
patterns of other valid units; most are recent additions.  Apart from a single
unit in a get_param call, only comments are changed, and all answers are bitwise
identical.
@Hallberg-NOAA Hallberg-NOAA changed the title +Correct units in 1 get_param call and 39 comments +Correct units in 1 get_param call and 64 comments Feb 20, 2023
@marshallward
Copy link
Member

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

@marshallward marshallward merged commit 00854d0 into NOAA-GFDL:dev/gfdl Mar 1, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the fix_bad_units_in_comments branch May 10, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants