Skip to content

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

Merged
marshallward merged 4 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:fix_bad_units_in_comments
Mar 1, 2023
Merged

+Correct units in 1 get_param call and 64 comments#327
marshallward merged 4 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:fix_bad_units_in_comments

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
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
Copy Markdown

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

@Hallberg-NOAA Hallberg-NOAA force-pushed the fix_bad_units_in_comments branch from 894257d to 2ddfbe0 Compare February 17, 2023 22:26
  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 force-pushed the fix_bad_units_in_comments branch from 2ddfbe0 to 93f6734 Compare February 20, 2023 16:10
@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
Copy Markdown
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
marshallward pushed a commit that referenced this pull request Apr 15, 2025
This PR introduces the calculate_mld_003 subroutine, previously a code black in mixedlayer_restrat_OM4, so as to make it available in mixedlayer_restrat_bodner as well. The newly added flag BODNER_USE_MLD_003 determines whether mld_003 is indeed used in mixedlayer_restrat_bodner.

* make MLD_003 computation available to mixedlayer_restrat_Bodner
* add missing params to Bodner MLD detection and rename new subroutine and runtime parameter
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