Add ocean model conservation checks#437
Conversation
|
@xylar Can you provide really broad feedback on the structure of this PR, particularly
|
|
@cbegeman, this looks great!
Let me know when you're ready for a more detailed review. |
|
@xylar Great. Thanks for taking a look! I'll try to finish this up today so we can get it in before the break |
fca87df to
38a167d
Compare
TestingI have run the mass conservation check for the barotropic_gyre case for both MPAS-Ocean and Omega on chrys with intel, openmpi |
38a167d to
34b123b
Compare
|
@xylar Ok. It think this is now ready. I realized that it made sense to support conservation checks for all omega-ported tests. |
xylar
left a comment
There was a problem hiding this comment.
My main non-cosmetic comment is about what layerThickness means coming from Omega. This actually may be something we need to address in a separate PR. It may be that we need layerThickness <---> GeometricLayerThickness and we need to have a way to compute Omega's LayerThickness from GeometricLayerThickness as part of computing initial conditions. But I want us to have a plan for that because this PR will somewhat exacerbate that problem.
And, as I say below, I think we should strongly consider renaming LayerThickenss to PseudoThickness in Omega.
@xylar Does this PR exacerbate that problem if we're calling separate functions for MPAS-O and Omega, e.g. |
I think this mainly exacerbates the problem if we don't account for |
|
@xylar Do you want to take a look at the last 2 commits and let me know if I've made the changes you had in mind? |
|
@xylar Thanks for reviewing and getting started on some related draft PRs |
This PR adds only the conservation checks done in MPAS-Ocean, with commented-out placeholder code for the non-boussinesq mass conservation check for Omega.
Checklist
* [ ] User's Guide has been updatedapi.md) has any new or modified class, method and/or functions listedTestingcomment in the PR documents testing used to verify the changes* [ ] New tests have been added to a test suite