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

Added modified Leith viscosity. #515

Merged
merged 2 commits into from
Jun 23, 2017
Merged

Conversation

sdbachman
Copy link
Contributor

Added a term proportional to the gradient of divergence to the
Leith viscosity, which turns regular 2D Leith into Modified Leith.

Added a term proportional to the gradient of divergence to the
Leith viscosity, which turns regular 2D Leith into Modified Leith.
@adcroft adcroft requested a review from Hallberg-NOAA June 13, 2017 05:13
@adcroft
Copy link
Collaborator

adcroft commented Jun 13, 2017

@Hallberg-NOAA FYI, this passes our tests. Just needs you code review. https://gitlab.gfdl.noaa.gov/ogrp/MOM6/pipelines/1938

@sdbachman
Copy link
Contributor Author

sdbachman commented Jun 13, 2017 via email

@adcroft
Copy link
Collaborator

adcroft commented Jun 13, 2017

image

@Hallberg-NOAA
Copy link
Collaborator

Overall this looks great, but there are two things that need to be fixed here before it should be merged.
First, the new variable CS%Modified_Leith is never initialized, which means that there may be capricious and compiler-dependent behavior to the model. A get_param call for MODIFIED_LEITH is needed.
Second, the caption in the clever figure that @adcroft contributed a couple of hours ago needs to be fixed to make it one-message!

Copy link
Collaborator

@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.

This appears to be a nice addition, but CS%Modified_Leith is currently not initialized. There needs to be a get_param call for this new parameter (or at least it needs to be set to something) before this code should be merged onto the main branch. Without this, there may be capricious or compiler-dependent behavior.

Initialized variable CS%Modified_Leith and added a get_param call
for it.
@adcroft
Copy link
Collaborator

adcroft commented Jun 23, 2017 via email

@adcroft adcroft merged commit 127e8dd into mom-ocean:dev/gfdl Jun 23, 2017
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