-
Notifications
You must be signed in to change notification settings - Fork 0
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
Changes to richardson number calculation #66
Changes to richardson number calculation #66
Conversation
This changes the calculation of the gradient and bulk richardson numbers to utilize the normal and tangential velocities to avoid the factor of two issue and also fixes a number of places where the loop was over maxLevelCell and should have been to maxLevelEdgeTop
@maltrud @golaz @jonbob @alicebarthel @mark-petersen this the second PR I mentioned. I have not yet tested the full build of this separated from the other PR -- #65 and will report back soon on that testing but wanted to post this for initial examination and review Same note as in the other PR this testing has always included #53 |
Confirming this builds okay and is ready for anyone to test. |
Testing now. This successfully compiles standalone with |
The purpose of these changes is to investigate whether a grid-scale mode may be present in The changes here are:
@vanroekel @jonbob @maltrud @alicebarthel @mark-petersen and all, I suggest intercomparing against POP as a way to get to the bottom of this |
With the current head of this PR I still get
with gnu debug on chrysalis. There must be something needed for halos, in addition to the last commit. |
Hmm, that’s unfortunate, but I guess I never did do an official decomposition test, just reduction of eyeball norm noise. Looking through the code, it seems the possibilities are halos on
|
@mark-petersen an update. I've tried to run the decomp test a bunch of times and have turned off cvmix, GM, and redi. This PR only should affect RiTopOfCell and bulkRichardsonNumberShear, which if I turned these things off it should run like master. But the test still fails. Do you have any suggestions? I'm wondering if my build has inadvertently diverged with the PR, I'll check that first, but if you have other ideas, let me know. |
@mark-petersen an update -- I got my decomp test to give some more helpful info. I've narrowed it down to the bulkRichardsonNumber shear portion of the code mods. The test passes if |
@mark-petersen I found a fix for this issue and fixed another bug. Can you test? If it works for you we need to add a halo exchange on tangential velocity in RK4 as well |
Great! |
@vanroekel, All other nightly suite tests pass gnu debug on chrysalis. |
@mark-petersen I forgot to add a halo exchange in RK4 that I added to split explicit. I'll make sure all time steppers get it now. |
okay I think it should pass that RK4 test now. But a question, I notice that in split_explicit/implicit there is a surface friction velocity exchange right before what I added that doesn't appear in RK4, should it? or is that halo exchange not necessary? |
Now passes nightly suite with both gnu debug and intel debug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the above discussion and testing, this is now ready to move to E3SM-Project/E3SM
repo.
Moved to E3SM-Project#5946 |
@mark-petersen, can we delete this branch on Ocean-Discussion? |
Question should probably have been to @vanroekel. I'm going to delete these branches because I don't think they are needed on Ocean-Discussion. In general, we want to open PRs here form branches from people's forks, not from this fork. |
Sorry for that mix up @xylar and thanks for deleting those branches |
This changes the calculation of the gradient and bulk richardson numbers to utilize the normal and tangential velocities to avoid the factor of two issue and also fixes a number of places where the loop was over maxLevelCell and should have been to maxLevelEdgeTop