Skip to content

Conversation

Hallberg-NOAA
Copy link
Member

Revised the calculation of the netFWGlobalAdj, vPrecGlobalAdj and saltFluxGlobalAdj elements of the forcing type to work in dimensionally rescaled units, making use of the unscale argument to reproducing_sum(). This change includes the addition of conversion factors to three register_scalar_field calls, and changes to the units of 15 variables to be rescaled. A total of 27 instances of multiplication by unit conversion factors were eliminated as a part of these changes, with 15 other unit conversion factors added via unscale arguments. All answers and output are bitwise identical, but there are changes to the units of three variables in a transparent type.

@Hallberg-NOAA Hallberg-NOAA added the refactor Code cleanup with no changes in functionality or results label Feb 6, 2025
@Hallberg-NOAA Hallberg-NOAA changed the title +Find fluxes%netFWGlobalAdj in recsaled units +Find fluxes%netFWGlobalAdj in rescaled units Feb 10, 2025
  Revised the calculation of the netFWGlobalAdj, vPrecGlobalAdj and
saltFluxGlobalAdj elements of the forcing type to work in dimensionally rescaled
units, making use of the unscale argument to reproducing_sum.  This change
includes the addition of conversion factors to the register_scalar_field calls,
and changes to the units of 15 variables to be rescaled.  A total of 27 instances
of multiplication by  unit conversion factors were eliminated as a part of these
changes, with 15 other unit conversion factors added via unscale arguments.  All
answers and output are bitwise identical, but there are changes to the units of
three variables in a transparent type.
@Hallberg-NOAA
Copy link
Member Author

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

@Hallberg-NOAA Hallberg-NOAA merged commit c69f59e into NOAA-GFDL:dev/gfdl Feb 16, 2025
10 checks passed
@Hallberg-NOAA Hallberg-NOAA deleted the rescale_GlobalAdj 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