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

+Optional arg cleanup in horizontal param code #1530

Merged
merged 4 commits into from
Oct 25, 2021

Conversation

Hallberg-NOAA
Copy link
Collaborator

Cleaned up 13 falsely optional or unused arguments in the horizontal
parameterization code, and related changes. This includes:

  • Made the previously optional OBC pointer arguments that were always being used
    in calls to 3 routines in MOM_lateral_mixing_coeffs.F90 into mandatory
    arguments. Because these are pointers, the deciding factor of whether to use
    them is really whether they are associated.
  • Made an internal optional argument that was always being used mandatory in 2
    routines in MOM_internal_tides.F90.
  • Made 2 internal optional arguments that were always being used mandatory in
    thickness_diffuse_full().
  • Eliminated the unused deta_tidal_deta argument to calc_tidal_forcing() and
    made the m_to_Z argument to the same routine mandatory. The former value is
    instead obtained by a call to tidal_sensitivity.
  • Eliminated 3 unused arguments and made an optional argument that was always
    used mandatory for find_deficit_ratios() in MOM_regularize_layers.F90.

  Cleaned up 13 falsely optional or unused arguments in the horizontal
parameterization code, and related changes.  This includes:
- Made the previously optional OBC pointer arguments that were always being used
  in calls to 3 routines in MOM_lateral_mixing_coeffs.F90 into mandatory
  arguments.  Because these are pointers, the deciding factor of whether to use
  them is really whether they are associated.
- Made an internal optional argument that was always being used mandatory in 2
  routines in MOM_internal_tides.F90.
- Made 2 internal optional arguments that were always being used mandatory in
  thickness_diffuse_full().
- Eliminated the unused deta_tidal_deta argument to calc_tidal_forcing() and
  made the m_to_Z argument to the same routine mandatory.  The former value is
  instead obtained by a call to tidal_sensitivity.
- Eliminated 3 unused arguments and made an optional argument that was always
  used mandatory for find_deficit_ratios() in MOM_regularize_layers.F90.
@codecov
Copy link

codecov bot commented Oct 21, 2021

Codecov Report

Merging #1530 (f279c78) into dev/gfdl (a2aaad6) will increase coverage by 0.00%.
The diff coverage is 17.24%.

❗ Current head f279c78 differs from pull request most recent head c5a689e. Consider uploading reports for the commit c5a689e to get more accurate results
Impacted file tree graph

@@            Coverage Diff            @@
##           dev/gfdl    #1530   +/-   ##
=========================================
  Coverage     29.09%   29.10%           
=========================================
  Files           239      239           
  Lines         71568    71524   -44     
=========================================
- Hits          20825    20818    -7     
+ Misses        50743    50706   -37     
Impacted Files Coverage Δ
...c/parameterizations/lateral/MOM_internal_tides.F90 0.00% <0.00%> (ø)
...arameterizations/lateral/MOM_thickness_diffuse.F90 31.28% <0.00%> (-0.29%) ⬇️
...rameterizations/vertical/MOM_regularize_layers.F90 6.41% <0.00%> (+0.50%) ⬆️
...rc/parameterizations/lateral/MOM_tidal_forcing.F90 34.05% <28.57%> (-0.46%) ⬇️
...eterizations/lateral/MOM_lateral_mixing_coeffs.F90 32.08% <75.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2aaad6...c5a689e. Read the comment docs.

@marshallward
Copy link
Collaborator

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

@marshallward marshallward merged commit 6dd1d14 into mom-ocean:dev/gfdl Oct 25, 2021
@Hallberg-NOAA Hallberg-NOAA deleted the horiz_param_args branch November 27, 2021 11:22
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