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

+Rescale fluxes%net_mass_src and other diagnostics #23

Merged
merged 2 commits into from
Dec 8, 2021

Conversation

Hallberg-NOAA
Copy link
Member

Retaing dimensional rescaling for several diagnostics:

  • Apply dimensional rescaling of fluxes%net_mass_src to and the net_mass_src
    argument to get_net_mass_forcing to [R Z T-1].
  • Rescaled the patm argument of convert_state_to_ocean_type to [R L2 T-2]
    and press_to_Z to [Z T2 R-1 L-2]; these are not actually exercised yet,
    so this has a very limited scope, although three other local variables were
    also dimensionally rescaled.
  • Revised the line breaks in two calls to register_restart to place the units
    and conversion factos on the same line, following a widespread code pattern.
  • Used the scale argument in calls to global_area_integral or global_area_mean
    for 6 diagnostics, so that 3 other primary variables can be calculated in
    scaled units and rescaled via factors specified in the register_restart calls,
    following a widespread code pattern.
    All answers and output are bitwise identical.

Retaing dimensional rescaling for several diagnostics:
- Apply dimensional rescaling of fluxes%net_mass_src to and the net_mass_src
  argument to get_net_mass_forcing to [R Z T-1].
- Rescaled the patm argument of convert_state_to_ocean_type to [R L2 T-2]
  and press_to_Z to [Z T2 R-1 L-2]; these are not actually exercised yet,
  so this has a very limited scope, although three other local variables were
  also dimensionally rescaled.
- Revised the line breaks in two calls to register_restart to place the units
  and conversion factos on the same line, following a widespread code pattern.
- Used the scale argument in calls to global_area_integral or global_area_mean
  for 6 diagnostics, so that 3 other primary variables can be calculated in
  scaled units and rescaled via factors specified in the register_restart calls,
  following a widespread code pattern.
All answers and output are bitwise identical.
@codecov
Copy link

codecov bot commented Dec 3, 2021

Codecov Report

Merging #23 (19d7f94) into dev/gfdl (c0be5d3) will decrease coverage by 0.00%.
The diff coverage is 33.33%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl      #23      +/-   ##
============================================
- Coverage     29.08%   29.07%   -0.01%     
============================================
  Files           240      240              
  Lines         71298    71289       -9     
============================================
- Hits          20735    20728       -7     
+ Misses        50563    50561       -2     
Impacted Files Coverage Δ
src/core/MOM_forcing_type.F90 47.25% <33.33%> (-0.21%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0be5d3...19d7f94. Read the comment docs.

@marshallward
Copy link
Member

gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/14294 ✔️

@marshallward marshallward merged commit 5f21667 into NOAA-GFDL:dev/gfdl Dec 8, 2021
@Hallberg-NOAA Hallberg-NOAA added the refactor Code cleanup with no changes in functionality or results label Feb 1, 2022
@Hallberg-NOAA Hallberg-NOAA deleted the rescale_net_mass_src branch March 25, 2022 12:42
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