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

+Remove build_grid_arbitrary and rescale_grid_bathymetry #502

Merged
merged 3 commits into from
Oct 30, 2023

Conversation

Hallberg-NOAA
Copy link
Member

This PR consists of a pair of commits that remove the unused routines build_grid_arbitrary() and rescale_grid_bathymetry(). All answers are bitwise identical in any cases that ran before.

Build_grid_arbitrary() could not have been used because it had a hard-coded STOP call, and comments in it indicated that it should have been deleted in July, 2013. The run-time parameter setting that would have triggered a call to this routine has been retained for now, but with a fatal error message explaining that this routine has not been implemented.

Rescale_grid_bathymetry() was added in August 2018 as a part of the development of the depth unit conversion and dimensional consistency testing, but it is no longer being called now that this conversion is essentially complete.

  Removed the unused (and unusable) routine build_grid_arbitrary.  This routine
could not have been used because it had a hard-coded STOP call, and comments in
it indicated that it should have been deleted in July, 2013.  The run-time
parameter setting that would have triggered a call to this routine has been
retained for now, but with a fatal error message explaining that this routine
has not been implemented.   All answers are bitwise identical in any cases that
ran before.
  Removed the unused routine rescale_grid_bathymetry.  This routine was added in
August 2018 as a part of the development of the depth unit conversion and
dimensional consistency testing, but it is no longer being called now that this
conversion is essentially complete (and it has not been called by the code in
several years).  For the original commit that first added this code, see
github.com/mom-ocean/MOM6/commit/ddc9ed1c33a1b7357b213929118ecaa19ae63f9f.  All
answers are bitwise identical.
@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #502 (9848963) into dev/gfdl (615e57f) will increase coverage by 0.02%.
The diff coverage is 0.00%.

❗ Current head 9848963 differs from pull request most recent head 3a095a7. Consider uploading reports for the commit 3a095a7 to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #502      +/-   ##
============================================
+ Coverage     37.50%   37.52%   +0.02%     
============================================
  Files           270      270              
  Lines         79111    79059      -52     
  Branches      14636    14629       -7     
============================================
  Hits          29670    29670              
+ Misses        43975    43923      -52     
  Partials       5466     5466              
Files Coverage Δ
src/core/MOM.F90 50.82% <ø> (ø)
src/core/MOM_grid.F90 75.59% <ø> (+4.47%) ⬆️
src/ALE/MOM_regridding.F90 29.70% <0.00%> (+1.16%) ⬆️

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

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.

Not sure what the issue with stop could have been, but sounds like removal of these functions is not an issue.

@marshallward
Copy link
Member

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

@marshallward marshallward merged commit 467d1dd into NOAA-GFDL:dev/gfdl Oct 30, 2023
10 checks passed
@Hallberg-NOAA Hallberg-NOAA deleted the remove_unused_routines branch November 8, 2023 23:11
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