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

Add an option in hor_visc to adopt velocity thickness from continuity solver #579

Merged
merged 3 commits into from
Mar 26, 2024

Conversation

herrwang0
Copy link

Runtime parameter USE_CONT_THICKNESS is added in horizontal viscosity to let it use velocity-point thickness consistent with the continuity solver. Thickness at velocity points simply uses h[uv] in BT_cont type. So the option only applies to split mode.

The purpose of this PR is to open the way for tests. A more general (and careful) implementation can be added later.

Runtime parameter USE_CONT_THICKNESS is added in hor_visc to let it use
velocity-point thickness consistent with the continuity solver.
Thicknesses are borrowed from BT_cont so only split mode is supported.
Copy link

codecov bot commented Mar 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.13%. Comparing base (32f6316) to head (a6ed961).

Additional details and impacted files
@@             Coverage Diff              @@
##           dev/gfdl     #579      +/-   ##
============================================
+ Coverage     37.09%   37.13%   +0.04%     
============================================
  Files           270      271       +1     
  Lines         80091    80776     +685     
  Branches      14939    15067     +128     
============================================
+ Hits          29709    29998     +289     
- Misses        44864    45178     +314     
- Partials       5518     5600      +82     

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

Copy link
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.

These changes seem like a valuable addition for exploring new algorithmic options, and they appear to me to be correctly implemented.

@marshallward
Copy link
Member

marshallward commented Mar 26, 2024

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

@marshallward marshallward merged commit 37ff301 into NOAA-GFDL:dev/gfdl Mar 26, 2024
12 checks passed
@herrwang0 herrwang0 deleted the horvisc_cont_thick branch May 20, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants