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

+Add and use optional unscale argument to log_param_real #320

Merged
merged 3 commits into from
Feb 13, 2023

Conversation

Hallberg-NOAA
Copy link
Member

This PR consists of two commits, the first of which adds the new optional argument unscale to the two interfaces wrapped by log_param for real variables. This argument allows for rescaled variables to be passed into these log_param
calls, without having to be multiplied by this unscaling factor, and it will allow the units and unscale arguments to be easily compared for consistency. The second commit uses this new optional argument in 10 calls to the log_param routines. All answers and output are bitwise identical.

The first of these two commits covers the non-controversial parts of MOM6 PR #300.

The commits in this PR include:

  • 8c8fbb3a7 Use unscale argument in 10 log_param calls
  • c90426494 +Add optional unscale argument to log_param_real

  This commit adds an optional unscale argument to the log_param_real
interfaces.  All answers and output are bitwise identical.
  Use the new unscale optional argument in 10 log_param calls for real
variables.  All answers and output are bitwise identical.
@codecov
Copy link

codecov bot commented Feb 7, 2023

Codecov Report

Merging #320 (acfc310) into dev/gfdl (2b46275) will increase coverage by 0.00%.
The diff coverage is 93.75%.

@@            Coverage Diff            @@
##           dev/gfdl     #320   +/-   ##
=========================================
  Coverage     37.19%   37.20%           
=========================================
  Files           265      265           
  Lines         74428    74431    +3     
  Branches      13822    13822           
=========================================
+ Hits          27687    27691    +4     
+ Misses        41650    41649    -1     
  Partials       5091     5091           
Impacted Files Coverage Δ
...c/parameterizations/vertical/MOM_energetic_PBL.F90 53.41% <ø> (ø)
src/tracer/oil_tracer.F90 0.00% <0.00%> (ø)
src/core/MOM_barotropic.F90 58.98% <100.00%> (ø)
src/diagnostics/MOM_sum_output.F90 64.84% <100.00%> (ø)
src/framework/MOM_file_parser.F90 90.57% <100.00%> (+0.03%) ⬆️
src/initialization/MOM_fixed_initialization.F90 61.33% <100.00%> (ø)
...rc/parameterizations/vertical/MOM_bkgnd_mixing.F90 31.78% <100.00%> (ø)
...c/parameterizations/vertical/MOM_vert_friction.F90 58.62% <100.00%> (ø)
src/framework/MOM_document.F90 73.58% <0.00%> (+0.21%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@marshallward
Copy link
Member

@marshallward marshallward merged commit ad56b29 into NOAA-GFDL:dev/gfdl Feb 13, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the log_with_unscale branch May 10, 2024 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants