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

Fix bugs in Leith add new input parameter #134

Merged
merged 2 commits into from
Dec 12, 2019

Conversation

gustavo-marques
Copy link
Collaborator

This PR fixes a few bugs in MOM_hor_visc when using Leith and
Modified_Leith.These are:

  1. deletes an unnecessary call to pass_var;
  2. changes the j indices to loop over when computing divergence gradient
    (div_xx_d?) and its magnitude (grad_div_mag_?)

A runtime parameter (ADD_LES_VISCOSITY) to control if the viscosity from
Smagorinsky and Leith should be added to the background value, rather
then taking the maximum value, has also been added.

Thanks to @septicscuzzy for making these changes.

This PR should not change answers for NCAR since these schemes are
currently not enabled.

This PR fixes a few bugs in MOM_hor_visc when using Leith and
Modified_Leith.These are:

1) deletes unecessary call to pass_var;
2) changes the j indices to loop over when computing divergence gradient
(div_xx_d?) and its magnitude (grad_div_mag_?)

A runtime parameter (ADD_LES_VISCOSITY) to control if the viscosity from
Smagorinsky and Leith should be added to the background value, rather
than taking the maximum value, has also been added.
@codecov-io
Copy link

Codecov Report

Merging #134 into dev/ncar will increase coverage by <.01%.
The diff coverage is 41.17%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/ncar     #134      +/-   ##
============================================
+ Coverage     43.17%   43.17%   +<.01%     
============================================
  Files           213      213              
  Lines         62233    62234       +1     
============================================
+ Hits          26866    26869       +3     
+ Misses        35367    35365       -2
Impacted Files Coverage Δ
src/parameterizations/lateral/MOM_hor_visc.F90 62.37% <41.17%> (+0.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2d9636...78bb4c1. Read the comment docs.

@alperaltuntas
Copy link
Member

Nuopc runs are failing. See for example: /glade/scratch/altuntas/cesm.tests/cheyenne/aux_mom/191120/SMS_Vnuopc.T62_t061.GMOM.cheyenne_intel.C.20191211_120721_xdtof1

Will look into it.

@alperaltuntas alperaltuntas merged commit 2cccc83 into NCAR:dev/ncar Dec 12, 2019
@gustavo-marques gustavo-marques deleted the fix_leith branch May 5, 2020 15:00
alperaltuntas pushed a commit that referenced this pull request Aug 9, 2024
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