Skip to content

Refactor horizontally_average_field#776

Merged
Hallberg-NOAA merged 1 commit intoNOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:refactor_horizontally_average_field
Jan 7, 2025
Merged

Refactor horizontally_average_field#776
Hallberg-NOAA merged 1 commit intoNOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:refactor_horizontally_average_field

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
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
Copy Markdown

@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
Copy Markdown
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
@Hallberg-NOAA Hallberg-NOAA deleted the refactor_horizontally_average_field branch January 14, 2025 18:56
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