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

+Eliminate unused arguments in diagnostics code #1526

Merged
merged 3 commits into from
Oct 23, 2021

Conversation

Hallberg-NOAA
Copy link
Collaborator

Eliminated the unused optional OBC argument to write_energy() and several
unused optional arguments to wave_speed() and wave_speeds() that are set instead
via arguments to wave_speed_init() that store these values in a wave_speed_CS
type. Also made the optional row_scale argument to tridiag_det() and the
tracer_CSp argument to write_energy() that were always present in calls into
mandatory arguments. All answers are bitwise identical, and solutions do not
change.

  Eliminated the unused optional OBC argument to write_energy() and several
unused optional arguments to wave_speed() and wave_speeds() that are set instead
via arguments to wave_speed_init() that store these values in a wave_speed_CS
type.  Also made the optional row_scale argument to tridiag_det() and the
tracer_CSp argument to write_energy() that were always present in calls into
mandatory arguments.  All answers are bitwise identical, and solutions do not
change.
@codecov
Copy link

codecov bot commented Oct 19, 2021

Codecov Report

Merging #1526 (eed5408) into dev/gfdl (ee3b92f) will increase coverage by 0.01%.
The diff coverage is 86.95%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl    #1526      +/-   ##
============================================
+ Coverage     29.08%   29.09%   +0.01%     
============================================
  Files           239      239              
  Lines         71582    71566      -16     
============================================
+ Hits          20821    20825       +4     
+ Misses        50761    50741      -20     
Impacted Files Coverage Δ
src/diagnostics/MOM_wave_speed.F90 23.97% <80.00%> (+0.25%) ⬆️
src/diagnostics/MOM_sum_output.F90 62.75% <88.88%> (+2.10%) ⬆️

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 ee3b92f...eed5408. Read the comment docs.

@marshallward marshallward merged commit 7e8d6e2 into mom-ocean:dev/gfdl Oct 23, 2021
@Hallberg-NOAA Hallberg-NOAA deleted the diagnostic_opt_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