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

+Renamed myStats scale argument to unscale #669

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Renamed the optional scale argument to myStats() to unscale, mirroring the
recent additions of unscale arguments to the various chksum() routines. This included changes to 6 calls to myStats() in the two horiz_interp_and_extrap_tracer() routines. Although myStats() is public, it really is only used in MOM_horizontal_regridding in the main version of MOM6, apart from a single call in MOM_initialize_tracer_from_Z() that does not use the optional (un)scale argument, so rather than adding a second optional argument, this case seemed to be safe enough to rename the argument in place. If there were any unanticipated problems with this argument name change, they would be manifest in code that does not compile. All answers are bitwise identical, but an optional argument (scale) to a publicly visible diagnostic routine (myStats()) was renamed.

Copy link

@theresa-morrison theresa-morrison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the reasoning that it is safe to rename this argument.

  Renamed the optional scale argument to myStats to unscale, mirroring the
recent additions of unscale arguments to the various chksum routines.  This
included changes to 6 calls to myStats in the two horiz_interp_and_extrap_tracer
routines.  Although myStats is public, it really is only used in
MOM_horizontal_regridding in the main version of MOM6, apart from a single call
in MOM_initialize_tracer_from_Z that does not use the optional unscale argument,
so rather than adding a second optional argument, this case seemed to be safe
enough to rename the argument in place.  If there were any unanticipated
problems with this argument name change, they would be manifest in code that
does not compile.  All answers are bitwise identical, but an optional argument
(scale) to a publicly visible diagnostic routine (myStats) was renamed.
@Hallberg-NOAA Hallberg-NOAA force-pushed the unscale_myStats_arg branch from d52e449 to e2c8246 Compare July 9, 2024 16:35
@Hallberg-NOAA
Copy link
Member Author

This PR has passed pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/24047.

@Hallberg-NOAA Hallberg-NOAA merged commit f8f127c into NOAA-GFDL:dev/gfdl Jul 9, 2024
10 checks passed
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.

3 participants