-
Notifications
You must be signed in to change notification settings - Fork 14
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
Extend manufactured solution to del2 and del4 #234
Extend manufactured solution to del2 and del4 #234
Conversation
TestingMPAS-Ocean tests have been run with E3SM-Ocean-Discussion/E3SM#110 and E3SM-Ocean-Discussion/E3SM#55. Update 19 Dec: MPAS-Ocean has been re-run and tests pass |
4d915a5
to
6866589
Compare
I'm not working much tomorrow but I can try to test this out. I agree that it would be good to get it in first without worrying about Omega, and then rework it for Omega support. |
Just a note that this needs E3SM-Project/E3SM#6862 and and update to the E3SM-Project submodule. |
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.
Tendencies: | ||
VelDiffTendencyEnable: false | ||
VelHyperDiffTendencyEnable: false |
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.
@cbegeman, this change will break manufactured solution in Omega because the associated changes in forward.py
don't yet include anything related to Omega. I know you don't want to address Omega here yet but maybe the solution is: 1) to leave these changes out for Omega and 2) to have setup fail for Omega for the del2 and del4 tasks for now.
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.
@xylar I removed the whole Omega section from this file. Is that in line with what you were thinking?
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.
@cbegeman, hmm, I'm hesitant to drop Omega support for manufactured_solution entirely. It's one of only 2 working tests we have.
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.
@xylar Should I just go ahead and make the io streams changes then to support all 3?
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.
@xylar I reverted the changes to this file. Should we merge this PR and then start adding support for Omega del2/del4?
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.
Great, thanks! Yes, I think so. (Sorry, I somehow missed the earlier comment).
I think we need to rebase or otherwise resolve the conflict listed below before we can merge.
The convergence rates are different for each test. Is it important that the analysis plots look different? |
Hmm, let me check that that's true for my test. The plots are visually identical so I assumed the convergence rates would be, too. It seems like if the del2 and del4 terms are actually having an effect, the error would be more quantitatively different with and without the terms, wouldn't you think? |
@xylar My memory was foggy. I should have said that the errors are different for each test. I didn't check the convergence rates to enough significant digits to tell. |
It seems like differences are in something like the 5th digit. To me, that suggests that the del2 and del4 terms aren't big enough to be affecting the convergence rate. We wouldn't notice if those terms don't have the expected convergence rate because all three tests are really only showing the convergence rate of the dominant terms. |
@xylar That's a good point. We'd want that term to be large enough that you'd notice if you broke the del2/del4 operators. I'll test some other values shortly. |
Thanks, that sounds good! |
With these changes the convergence rates are: I already had to decrease the time step by a factor of 2 to accommodate these higher viscosities. If we want to increase the del2 viscosity further, we will need to further decrease the time step. I would rather not do this because it's nice to have this be a quick (1 min) test. |
@cbegeman, okay, that seems like a reasonable compromise. It seems like we're still going to have a hard time telling if we've messed up the either the del2 or del4 term using these tests but maybe that just suggests we would need a dedicated tests to determine that if it were a high priority for us. We can discuss more outside of this PR if need be. |
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.
Approving based on my previous testing and @cbegeman's newest testing.
In case my comment above gets lost, I think the remaining step is to rebase or merge |
5d2eea9
to
071f244
Compare
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.
@cbegeman, this is great! I tested on Perlmutter and got the same convergence results you did above. My one comment is that although the errors are clearly converging, the viz step seems to be showing incorrect differences in the left panel below:
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.
Thanks for fixing the viz
step, @cbegeman. The changes look good.
@xylar Can you check that I've done the submodule update correctly before I merge? It's been a while since I've done one of those. |
@cbegeman, yes, looks great to me! |
This PR adds manufactured solution tests for del2 and del4 and renames the existing case to
default
. Both del2 and del4 tests depend on the corresponding source terms being added to the model. These terms are added to MPAS-Ocean here E3SM-Ocean-Discussion/E3SM#110. All tests depend on E3SM-Ocean-Discussion/E3SM#55 to achieve expected convergence.Checklist
Testing
comment in the PR documents testing used to verify the changes