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

Refactor horizontally_average_field #776

Conversation

Hallberg-NOAA
Copy link
Member

Refactored the horizontally_average_field() routine in MOM_diag_remap to work in rescaled units by making use of the unscale arguments to the reproducing_sum() routines. A total of 9 rescaling variables were converted into a pair of unscale arguments. All answers and diagnostics are bitwise identical, and no interfaces are changed.

@Hallberg-NOAA Hallberg-NOAA added the refactor Code cleanup with no changes in functionality or results label Dec 12, 2024
Copy link

@MJHarrison-GFDL MJHarrison-GFDL left a comment

Choose a reason for hiding this comment

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

This commit makes complete sense. The code is cleaner in unscaled units.

  Refactored the horizontally_average_field() routine in MOM_diag_remap to work
in rescaled units by making use of the unscale arguments to the
reproducing_sum() routines.  A total of 9 rescaling variables were moved into
unscale arguments.  All answers and diagnostics are bitwise identical, and no
interfaces are changed.
@Hallberg-NOAA Hallberg-NOAA force-pushed the refactor_horizontally_average_field branch from 8c8e218 to e15d37c Compare January 7, 2025 20:36
@Hallberg-NOAA
Copy link
Member Author

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

@Hallberg-NOAA Hallberg-NOAA merged commit 5ccb388 into NOAA-GFDL:dev/gfdl Jan 7, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Code cleanup with no changes in functionality or results
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants