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

+(*)Bodner param with cuberoot and non-Boussinesq #545

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Use the new cuberoot function in the Bodner estimate of u'w' when the new runtime parameter ML_RESTRAT_ANSWER_DATE is 20240201 or higher, which avoids the need to undo and redo the dimensional scaling in this calculation. In addition, the refactoring associated with this change explicitly revealed that as it was implemented it introduced an undesirable dependency on the value of the Boussinesq reference density, RHO_0, when in non-Boussinesq mode. To avoid this, a new version of the Bodner u'w' calculation was introduced in fully non-Boussinesq mode, which does change answers with this combination; because there is not yet a known case that used this combination, we have chosen not to add a runtime parameter to preserve the old answers when the Bodner parameterization is used in fully-Boussinesq mode. This change will modify the contents of some MOM_parameter_doc files with USE_BODNER=True, and it changes answers in cases that are also fully non-Boussinesq. The new runtime parameter ML_RESTRAT_ANSWER_DATE might need to be set below 20240201 to retain some existing Boussinesq answers.

@Hallberg-NOAA Hallberg-NOAA added bug Something isn't working enhancement New feature or request Parameter change Input parameter changes (addition, removal, or description) labels Jan 19, 2024
Copy link

codecov bot commented Jan 19, 2024

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (ea12532) 37.21% compared to head (136490d) 37.21%.

Files Patch % Lines
...ameterizations/lateral/MOM_mixed_layer_restrat.F90 57.14% 11 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           dev/gfdl     #545      +/-   ##
============================================
- Coverage     37.21%   37.21%   -0.01%     
============================================
  Files           271      271              
  Lines         80430    80442      +12     
  Branches      14995    14996       +1     
============================================
+ Hits          29930    29933       +3     
- Misses        44937    44945       +8     
- Partials       5563     5564       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

  Use the new cuberoot function in the Bodner estimate of u'w' when the new
runtime parameter ML_RESTRAT_ANSWER_DATE is 20240201 or higher, which avoids the
need to undo and redo the dimensional scaling in this calculation.  In addition,
the refactoring associated with this change explicitly revealed that as it was
implemented it introduced an undesirable dependency on the value of the
Boussinesq reference density, RHO_0, when in non-Boussinesq mode.  To avoid
this, a new version of the Bodner u'w' calculation was introduced in fully
non-Boussinesq mode, which does change answers with this combination; because
there is not yet a known case that used this combination, we have chosen not to
add a runtime parameter to preserve the old answers when the Bodner
parameterization is used in fully-Boussinesq mode.  This change will modify the
contents of some MOM_parameter_doc files with USE_BODNER=True, and it changes
answers in cases that are also fully non-Boussinesq.  The new runtime parameter
ML_RESTRAT_ANSWER_DATE might need to be set below 20240201 to retain some
existing Boussinesq answers.
@Hallberg-NOAA Hallberg-NOAA force-pushed the cuberoot_nonBous_Bodner branch from 15c8835 to 9965e3d Compare January 28, 2024 16:24
@Hallberg-NOAA Hallberg-NOAA mentioned this pull request Jan 28, 2024
@marshallward
Copy link
Member

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

The CI regressions are expected due to the replacement of **(2/3) with cuberoot()**2.

@marshallward marshallward merged commit 9282cd1 into NOAA-GFDL:dev/gfdl Feb 8, 2024
10 of 12 checks passed
@Hallberg-NOAA Hallberg-NOAA deleted the cuberoot_nonBous_Bodner branch May 10, 2024 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request Parameter change Input parameter changes (addition, removal, or description)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants