-
Notifications
You must be signed in to change notification settings - Fork 360
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
Bugfixes for ocean inactive top cells feature #5246
Bugfixes for ocean inactive top cells feature #5246
Conversation
Can you say more about which cases this is non-BFB? Will a typical water cycle coupled case be affected? |
The non-BFB changes are specifically in ocean BGC tracers. So I believe a typical water cycle case with BGC tracers would be non-BFB with respect to those tracers. @maltrud would you like to weigh in here? |
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.
Generally looks ok to me. I can't comment on the correctness of the ALE change. I generally prefer to define a (private) integer scalar kmin rather than using the minLevel array directly as an index, especially if there are multiple references. On L238,239 of the Redi routine, could that construct be: k = max(1,minLevelEdgeBot(iEdge)) ? These are optional changes though.
@cbegeman I tested this with gnu and intel on badger, both optimized:
and this PR passes the nightly test suite, but fails comparisons with the master branch point on all test cases. Differences are all 1e-12 or less. This was not expected, I believe. Can you repeat that test to verify this result? |
38431f9
to
719a98f
Compare
@philipwjones Thanks for your suggestions for the Redi routine. I tried implementing them but I couldn't manage BFB results on all the compass PR test cases so I didn't include them here. |
@mark-petersen I removed the z-star ALE changes from this PR. I tried everything I could think of (after finding one needed change) and couldn't get BFB results on all the compass PR-suite test cases. I'll leave it for a separate non-BFB PR. |
@jonbob This PR is ready for your testing. Let me know how I can help out! |
@mark-petersen and @xylar - can you please complete reviews and sign off? |
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.
I'm approving based on an inspection of the code and a run of the pr
test suite on Chyrsalis with Intel and Intel-MPI. I use master
as a baseline and did a test merge of this branch with master
.
All pr
tests passed except that ocean/baroclinic_channel/10km/decomp_test
is failing for both the baseline and this branch (a known issue: #5219)
@golaz this might change answers for wcycle cases. |
I could be wrong but I believe that's no longer true since part of this PR was moved to #5254. @jonbob, have you done E3SM testing since then? I assume not since you're waiting on @mark-petersen's review. |
@xylar -- I can do some of the testing now, just to see if it is BFB with overnight testing. If it's not, we'll have to make some longer runs and compare |
@cbegeman - did you intend this PR to no longer be non-BFB? Preliminary testing shows BFB results for:
The last one is a BGC test, which I thought was supposed to change answers? |
@jonbob Thanks for doing that testing. And apologies for the BFB confusion. In a previous version of master, this commit 15c8d70 did result in non-BFB changes in BGC tests, but I found that the standalone global ocean BGC test is BFB now. I didn't want to make any promises for E3SM tests but it's not totally surprising to me that these are also coming back BFB. In the first batch of inactive top cell changes, there were some instances of compiler-dependence in whether it was BFB. So far, you, @xylar and I have all been using chrys with intel, so it might be worth checking a BGC test with another compiler. Does such a test exist for E3SM besides the one you already ran? |
@cbegeman -- I also ran a test on compy with pgi and it was BFB as well:
|
@jonbob That's great! |
@cbegeman - I changed the description and labels to make this a BFB PR. Once @mark-petersen completes his review we'll merge it and see how it does on all the testing platforms |
@jonbob That sounds great to me. Thank you! |
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.
…5246) This PR fixes 2 bugs that affect the inactive top cells feature (i.e., when minLevelCell > 1). One in ocn_diagnostic_solve_ssh and the other affects the sea ice salinity flux in ocn_surface_bulk_forcing. No changes in the solution should occur when there are no inactive top cells. This PR also includes a cleanup of Redi. The original clunky workaround was designed to avoid non-bfb changes in BGC tracers, and this revision introduces those potentially non-bfb changes as @maltrud determined that they are insignificant. Fixes #5245 [BFB]
passes sanity testing and previous testing indicated BFB, merged to next |
merged to master |
Thanks for your testing @jonbob! |
This PR fixes 2 bugs that affect the inactive top cells feature (i.e., when
minLevelCell > 1
). One inocn_diagnostic_solve_ssh
and the other affects the sea ice salinity flux inocn_surface_bulk_forcing
.No changes in the solution should occur when there are no inactive top cells.
This PR also includes a cleanup of Redi. The original clunky workaround was designed to avoid non-bfb changes in BGC tracers as discussed here, and this revision introduces those potentially non-bfb changes as @maltrud determined that they are insignificant.
Fixes #5245
[BFB]