-
Notifications
You must be signed in to change notification settings - Fork 65
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
Set flags properly for rotated tripolar grids #581
Set flags properly for rotated tripolar grids #581
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev/gfdl #581 +/- ##
============================================
- Coverage 37.13% 37.12% -0.01%
============================================
Files 271 271
Lines 80779 80794 +15
Branches 15068 15082 +14
============================================
- Hits 29999 29998 -1
- Misses 45181 45195 +14
- Partials 5599 5601 +2 ☔ View full report in Codecov by Sentry. |
I am confused about the interpretation here. Generally The two-turn case looks correct to me. Also, there are |
The main point of this PR was to get FMS to issue a message indicating that it has not yet fully implemented rotated tripolar grids, rather than just silently doing completely the wrong thing when we tried to put in turns with a tripolar grid. You would be better positioned to describe the sense of the turns, @marshallward, than I am, and I am sure that you are right about the changes we need to make, and we should make them now. The true test, though, will be when FMS finally supports southern-, eastern- and western- tripolar grids, and then we can actually see what gives the right answers! |
Added code to tht two versions of clone_MD_to_MD in the FMS1 and FMS2 versions of MOM_domain_infra.F90 to properly change the flags when a tripolar grid is rotated, so that it does not lead to misleadingly incorrect answers. With the current versions of FMS, doing grid rotation testing with a tripolar grid will lead to error messages about the incomplete implementation of FMS, but these failures are preferable to the model silently working incorrectly. All answers are bitwise identical in cases that worked correctly before.
8c5bff7
to
d9bd123
Compare
This PR has been updated to make the changes suggested in the review. |
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.
Looks good!
Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/22871 ✔️ |
Added code to tht two versions of clone_MD_to_MD in the FMS1 and FMS2 versions of MOM_domain_infra.F90 to properly change the flags when a tripolar grid is rotated, so that it does not lead to misleadingly incorrect answers. With the current versions of FMS, doing grid rotation testing with a tripolar grid will lead to error messages about the incomplete implementation of FMS, but these failures are preferable to the model silently working incorrectly. All answers are bitwise identical in cases that worked correctly before.