-
Notifications
You must be signed in to change notification settings - Fork 62
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
(*)Fix bug in rotate_ALE_sponge for fixed sponges #667
(*)Fix bug in rotate_ALE_sponge for fixed sponges #667
Conversation
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.
This looks like a simple change that addresses the issue.
I just approved this since it seems necessary, but I am confused by |
Since |
Corrected a bug in rotate_ALE_sponge that incorrectly set the starting number of sponge fields that prevented any cases with fixed ALE sponges from working when ROTATE_INDEX is true, even if INDEX_TURNS is 0. With this correction, the code is now working (and giving identical answers) with rotation enabled for cases with fixed ALE_sponges. All answers are bitwise identical in cases that worked before, but some cases that did not work at all are now working both with and without grid rotation.
29d944d
to
424720f
Compare
I was mistaken, a fixed sponge Perhaps there is a better design in here somewhere, but no need to overthink it for now. I agree that this is correct. |
One last thought: You might be able to just remove |
This PR has passed pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/24042. |
Corrected a bug in
rotate_ALE_sponge()
that incorrectly set the starting number of sponge fields that prevented any cases with fixed ALE sponges from working whenROTATE_INDEX = true
, even ifINDEX_TURNS = 0
. With this correction, the code is now working (and giving identical answers) with rotation enabled for cases with fixed ALE_sponges. All answers are bitwise identical in cases that worked before, but some cases that did not work at all are now working both with and without grid rotation.