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

Dimensional rescaling in MOM_state_stats #830

Merged

Conversation

Hallberg-NOAA
Copy link
Member

MOM_state_stats() has been refactored to work primarily in dimensionally rescaled units using the unscale argument to reproducing_sum(). As a result of these changes, the units of 8 variables were changed to be rescaled, and six instances of multiplication by rescaling factors were changed into unscale arguments. MOM_state_stats() is exercised by setting DEBUG_CONSERVATION = True, and it has been verified that MOM_state_stats() gives results that are invariant to the use of dimensional rescaling. All answers and output are bitwise identical.

@Hallberg-NOAA Hallberg-NOAA added the refactor Code cleanup with no changes in functionality or results label Feb 6, 2025
  MOM_state_stats() has been refactored to work primarily in dimensionally
rescaled units using the unscale argument to reproducing_sum().  As a result of
these changes, the units of 8 variables were changed to be rescaled, and six
instances of multiplication by rescaling factors were changed into unscale
arguments.  MOM_state_stats() is exercised by setting DEBUG_CONSERVATION = True,
and it has been verified that MOM_state_stats() gives results that are invariant
to the use of dimensional rescaling.  All answers and output are bitwise
identical.
@Hallberg-NOAA Hallberg-NOAA force-pushed the refactor_MOM_state_stats branch from ecd839c to ab77091 Compare February 16, 2025 12:05
@Hallberg-NOAA
Copy link
Member Author

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

@Hallberg-NOAA Hallberg-NOAA merged commit 93067d0 into NOAA-GFDL:dev/gfdl Feb 16, 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.

2 participants