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

(*)Fix MEKE scaling issues with SmartRedis options #313

Merged
merged 2 commits into from
Feb 2, 2023

Conversation

Hallberg-NOAA
Copy link
Member

This commit fixes a number of dimensional rescaling issues that were introduced to the MOM_MEKE code with the SmartRedis related options. Specifically, it adds a missing scale factor for the time_interp_external call for the offline data eddy kinetic energy used in MEKE when EKE_SOURCE=file. It also corrects the documented units and conversion factors for 4 diagnostics related to machine learning within MEKE. This commit also adds or amends comments to document the units of 27 internal variables in MOM_MEKE.F90, and corrected a few spelling errors in comments. All answers and output are bitwise identical in the existing MOM6-examples test suite, but there may be other examples where the units or rescaling of diagnostics are corrected or (in cases using EKE_SOURCE=file) where dimensional consistency testing issues are corrected for the solutions themselves.

@codecov
Copy link

codecov bot commented Jan 25, 2023

Codecov Report

Merging #313 (5ab6c2e) into dev/gfdl (a139bc4) will increase coverage by 0.00%.
The diff coverage is 21.05%.

@@            Coverage Diff            @@
##           dev/gfdl     #313   +/-   ##
=========================================
  Coverage     37.16%   37.17%           
=========================================
  Files           265      265           
  Lines         74424    74424           
  Branches      13822    13822           
=========================================
+ Hits          27663    27665    +2     
+ Misses        41676    41674    -2     
  Partials       5085     5085           
Impacted Files Coverage Δ
src/parameterizations/lateral/MOM_MEKE.F90 42.08% <21.05%> (ø)
src/framework/MOM_document.F90 72.92% <0.00%> (+0.43%) ⬆️

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

Copy link

@ashao ashao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing these units and scaling factors @Hallberg-NOAA. The only question I have is whether the vertically averaged isopycnal slope needed a conversion factor.

src/parameterizations/lateral/MOM_MEKE.F90 Show resolved Hide resolved
@Hallberg-NOAA Hallberg-NOAA added bug Something isn't working documentation Improvements or additions to documentation labels Jan 26, 2023
  This commit fixed a number of dimensional rescaling issues that were
introduced to the MOM_MEKE code switch the SmartRedis related options.
Specifically, it adds a missing scale factor for the time_interp_external call
for the offline data Eddy kinetic energy used in MEKE when EKE_SOURCE=file.  It
also corrects the documented units and conversion factors for 4 diagnostics
related to machine learning within MEKE.  This commit also adds or amends
comments to document the units of 27 internal variables in MOM_MEKE.F90, and
corrected a few spelling errors in comments.   All answers and output are
bitwise identical in the existing MOM6-examples test suite, but there may be
other examples where the units or rescaling of diagnostics are corrected or (in
cases using EKE_SOURCE=file) where dimensional consistency testing issues are
corrected for the solutions themselves.
@Hallberg-NOAA
Copy link
Member Author

This PR has been amended to use [arbitrary] to more explicitly document the units of a variable that can have arbitrary units, in response to comments from Alistair Adcroft.

Copy link
Member

@marshallward marshallward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving on behalf of @ashao

@marshallward
Copy link
Member

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/18138 ✔️

@marshallward marshallward merged commit f6b4a7d into NOAA-GFDL:dev/gfdl Feb 2, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the MEKE_SmartRedis_fix branch May 10, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants