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

Improvements in the gradient Ri # calculation/diagnosis (MOM_CVMix_shear) #225

Merged
merged 3 commits into from
Nov 14, 2022

Conversation

gustavo-marques
Copy link
Collaborator

This PR adds the following improvements in the calculation and diagnosis of the gradient Richardson number in the MOM_CVMix_shear module:

  • Rename parameter SMOOTH_RI to N_SMOOTH_RI (cfd7c0b);
  • Modify gradient Richarson number diagnostics to avoid confusion (0927852);
  • Adds option to smooth gradient Ri multiple times (b444041).

To recover previous answers, SMOOTH_RI = True must be replaced by N_SMOOTH_RI = 1. I verified that this PR does not change answers for GMOM/JRA.

In preparation for implementing the option to apply a vertical
smooth filter in the Richardson number multiple times, the
parameter SMOOTH_RI (logical) was renamed to N_SMOOTH_RI (interger).
If N_SMOOTH_RI = 0 (default), smoothing is not performed. If
N_SMOOTH_RI > 0, smoothing will be applied N_SMOOTH_RI times.
Currently, there are two diagnostics related to the gradient Richarson
number and these are described as follows:

* ri_grad_shear         : Gradient Richarson number used by
  MOM_CVMix_shear module;

* ri_grad_shear_smooth  : Smoothed gradient Richarson number used by
  MOM_CVMix_shear module.

The description for ri_grad_shear is misleading. If smoothing is applied,
ri_grad_shear *is not* the RI number used by MOM_CVMix_shear module. In
this commit. I propose to avoid this potential confusion by renaming
ri_grad_shear_smooth to ri_grad_shear_orig and, if N_SMOOTH_RI > 0,
use ri_grad_shear to store the smoothed profiles.

* ri_grad_shear_orig  : Original gradient Richarson number, before smoothing
  was applied. This is part of the MOM_CVMix_shear module and only available
  when N_SMOOTH_RI > 0.

No change in answers for GMOM.
This commit adds the option to smooth the gradient Richardson
number multiple times using a 1-2-1 filter. The number of times
that the filter is applied is controlled by parameter N_SMOOTH_RI.
@codecov-commenter
Copy link

codecov-commenter commented Sep 23, 2022

Codecov Report

Base: 37.22% // Head: 37.22% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (b444041) compared to base (fe3cb4d).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##           dev/ncar     #225      +/-   ##
============================================
- Coverage     37.22%   37.22%   -0.01%     
============================================
  Files           261      261              
  Lines         72319    72323       +4     
  Branches      13533    13534       +1     
============================================
  Hits          26921    26921              
- Misses        40407    40411       +4     
  Partials       4991     4991              
Impacted Files Coverage Δ
src/parameterizations/vertical/MOM_CVMix_shear.F90 11.11% <0.00%> (-0.37%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@alperaltuntas alperaltuntas left a comment

Choose a reason for hiding this comment

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

aux_mom.cheyenne. b4b.

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