Skip to content

Dimensional rescaling in MOM_state_stats#830

Merged
Hallberg-NOAA merged 1 commit intoNOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:refactor_MOM_state_stats
Feb 16, 2025
Merged

Dimensional rescaling in MOM_state_stats#830
Hallberg-NOAA merged 1 commit intoNOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:refactor_MOM_state_stats

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
@Hallberg-NOAA Hallberg-NOAA deleted the refactor_MOM_state_stats branch April 22, 2025 22:28
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