Skip to content

Fix to bottom drag as a body force#176

Merged
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
awallcraft:drag
Aug 2, 2022
Merged

Fix to bottom drag as a body force#176
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
awallcraft:drag

Conversation

@awallcraft
Copy link
Copy Markdown

DRAG_AS_BODY_FORCE was using two inconsistent values for the bottom boundary layer.
It now always uses HBBL, or the total water depth if that is less than HBBL.

Results with the default DRAG_AS_BODY_FORCE=False are unchanged.

DRAG_AS_BODY_FORCE was using two inconsistent values for the bottom
boundary layer.  It now always uses HBBL, or the total water depth
if that is less than HBBL.

Results with DRAG_AS_BODY_FORCE=False are unchanged.
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 29, 2022

Codecov Report

Merging #176 (da05fdb) into dev/gfdl (97319c9) will increase coverage by 0.20%.
The diff coverage is 0.00%.

❗ Current head da05fdb differs from pull request most recent head 6e324b3. Consider uploading reports for the commit 6e324b3 to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #176      +/-   ##
============================================
+ Coverage     37.20%   37.40%   +0.20%     
============================================
  Files           258      259       +1     
  Lines         70733    71840    +1107     
  Branches      13158    13442     +284     
============================================
+ Hits          26314    26871     +557     
- Misses        39653    40025     +372     
- Partials       4766     4944     +178     
Impacted Files Coverage Δ
...c/parameterizations/vertical/MOM_set_viscosity.F90 60.10% <0.00%> (-0.07%) ⬇️
src/parameterizations/lateral/MOM_hor_visc.F90 50.36% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us.

@Hallberg-NOAA Hallberg-NOAA added the bug Something isn't working label Jul 31, 2022
Copy link
Copy Markdown
Member

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

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

I agree that these changes correct a bug with the new body_force_drag option, which will now work as intended.

There is an interaction between this code change and the bottom boundary layer thickness used in the channel_drag code block, analogously to what had previously been done when Richardson number driven mixing is enabled. Although this seems sensible enough, it should perhaps be reconsidered, for both the new option and when the Richardson number mixing is enabled.

@marshallward
Copy link
Copy Markdown
Member

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

As expected, there is a parameter change due to the updated docstring.

@marshallward marshallward merged commit 6835709 into NOAA-GFDL:dev/gfdl Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants