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

Correct the computation of FrictWork in MOM_hor_visc #663

Merged
merged 5 commits into from
Jun 20, 2024

Conversation

Wendazhang33
Copy link

Corrected the computation of FrictWork in MOM_hor_visc.F90. The domain integral of FrictWork should exactly match the total energy dissipation rate by horizontal viscosity (KE_horvisc) computed in MOM_diagnostics. However, the previous version of FrictWork (realized by setting FRICTWORK_BUG = True, which is the default) overestimates the magnitude of total KE_horvisc. The new code (realized by setting FRICTWORK_BUG = False) fixes this issue by using the thickness flux rather than the velocity to compute FrictWork. The figure below shows a comparison between the domain integral of KE_horvisc (blue solid line) and FrictWork (dashed lines). Orange and green dashed lines show the FrictWork computed by the old and new codes, respectively. The new code computes the FrictWork that exactly matches KE_horvisc, while the old code does not.

5C4EC9F5-7558-45EE-AF38-5657C30CBD85

Add FRICTWORK_BUG parameter (default is true). If FRICTWORK_BUG is false, use the new way to compute FrictWork using the thickness flux. The previous version (realized by setting FRICTWORK_BUG as true) uses the velocity to compute FrictWork, which overestimates the total energy dissipation rate compared with the domain integral of KE_horvisc computed in MOM_diagnostics.
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.

With the recent updates, this PR is now looking to me like it is ready to go. Thank you very much for this contribution, @Wendazhang33 .

@marshallward
Copy link
Member

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/jobs/132092 ✔️ 🟡

@marshallward marshallward merged commit f798796 into NOAA-GFDL:dev/gfdl Jun 20, 2024
10 checks passed
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