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

*Non-Boussinesq revision of 3 MOM_CVMix modules #444

Merged
merged 2 commits into from
Aug 14, 2023

Conversation

Hallberg-NOAA
Copy link
Member

This commit revises MOM_CVMix_conv, MOM_CVMix_ddiff and MOM_CVMix_shear to work in an appropriate mixture of thickness and vertical extent variables to enable their use in non-Boussinesq mode, using thickness_to_dz to convert between the two, while retaining the previous answers in Boussinesq mode. This includes the use of a layer thicknesses rather than a vertical distance in the denominator of the calculation of the buoyancy frequency and to the units of the internal rescaled gravity variable in CVMix_conv. This commit eliminates any direct or indirect dependency on the Boussinesq reference density in these 3 modules when in non-Boussinesq mode.

This set of changes includes changing the units of 7 internal variables and the addition, renaming, or change in the dimensions of 4 internal variables. One element in the CVMix_ddiff_cs type is rescaled to use thickness units. These changes lead to the removal of 4 factors of GV%H_to_Z in these 3 modules.

Answers will change in non-Boussinesq mode when USE_CVMix_CONVECTION, USE_CVMIX_DDIFF, USE_PP81 or USE_LMD94 are true, but they are bitwise identical in all Boussinesq test cases.

  This commit revises MOM_CVMix_conv, MOM_CVMix_ddiff and MOM_CVMix_shear to
work in an appropriate mixture of thickness and vertical extent variables to
enable their use in non-Boussinesq mode, using thickness_to_dz to convert
between the two, while retaining the previous answers in Boussinesq mode.  This
includes the use of a layer thicknesses rather than a vertical distance in the
denominator of the calculation of the buoyancy frequency and to the units of the
internal rescaled gravity variable in CVMix_conv.  This commit eliminates any
direct or indirect dependency on the Boussinesq reference density in these 3
modules when in non-Boussinesq mode.

  This set of changes includes changing the units of 7 internal variables and
the addition, renaming, or change in the dimensions of 4 internal variables.
One element in the CVMix_ddiff_cs type is rescaled to use thickness units.
These changes lead to the removal of 4 factors of GV%H_to_Z in these 3 modules.

  Answers will change in non-Boussinesq mode when USE_CVMix_CONVECTION,
USE_CVMIX_DDIFF, USE_PP81 or USE_LMD94 are true, but they are bitwise identical
in all Boussinesq test cases.
@Hallberg-NOAA Hallberg-NOAA added enhancement New feature or request answer-changing A change in results (actual or potential) labels Aug 6, 2023
@codecov
Copy link

codecov bot commented Aug 6, 2023

Codecov Report

Merging #444 (87f916a) into dev/gfdl (2642c1c) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

❗ Current head 87f916a differs from pull request most recent head 2482b85. Consider uploading reports for the commit 2482b85 to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #444      +/-   ##
============================================
- Coverage     38.07%   38.06%   -0.01%     
============================================
  Files           269      269              
  Lines         77187    77194       +7     
  Branches      14256    14258       +2     
============================================
+ Hits          29386    29387       +1     
- Misses        42477    42484       +7     
+ Partials       5324     5323       -1     
Files Changed Coverage Δ
src/parameterizations/vertical/MOM_CVMix_conv.F90 7.86% <0.00%> (-0.28%) ⬇️
src/parameterizations/vertical/MOM_CVMix_ddiff.F90 8.75% <0.00%> (ø)
src/parameterizations/vertical/MOM_CVMix_shear.F90 10.76% <0.00%> (-0.35%) ⬇️

... and 1 file with indirect coverage changes

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

Copy link

@StephenGriffies StephenGriffies left a comment

Choose a reason for hiding this comment

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

Code looks good. I see no red flags.

@marshallward
Copy link
Member

Gaea regresssion: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/20302 ✔️

@marshallward marshallward merged commit f847b3c into NOAA-GFDL:dev/gfdl Aug 14, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the nonBous_CVMix_modules branch September 27, 2023 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answer-changing A change in results (actual or potential) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants