(*)Shelfwave_set_OBC_data works with grid rotation#895
Conversation
|
This code looks fine and I've seen that it works for @Hallberg-NOAA. However, it also depends on changes to MOM_open_boundary.F90 which I don't have, so I can't directly test this yet. |
1b6e12c to
1ae485d
Compare
1ae485d to
55b1c37
Compare
55b1c37 to
69bd1ed
Compare
|
This fails like Tidal Bay does, but runs fine with this little change to MOM.F90: I approve once the case of no tracers is handled. |
05e12f6 to
7167141
Compare
Modified shelfwave_set_OBC_data to work properly with grid rotation of 90, 180 or 270 degrees. With these changes the ESMG shelfwave test case is now giving bitwise identical answers under grid rotation. This commit also corrects a recently added problem with potentially unallocated arrays being used to test whether a pointer is set to the unrotated tracer reservoirs in cases where there are no tracers. This commit does change (and fix) answers when grid rotation is used, but answers are bitwise identical when there is no grid rotation, and there are no changes to any public interfaces.
7167141 to
d771cea
Compare
|
I have updated this PR to address this problem with an unassociated being referenced with the following even simpler fix: |
marshallward
left a comment
There was a problem hiding this comment.
@kshedstrom I'm going to tentatively approve this based on your previous feedback, but please let us know if the associated() change does not fix the issue.
|
Yes, I approve the new version. |
|
This revised PR has passed pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/27714. |
Modified
shelfwave_set_OBC_data()to work properly with grid rotation of 90, 180 or 270 degrees. With these changes the ESMG shelfwave test case is now giving bitwise identical answers under grid rotation. This commit also corrects a recently added problem with potentially unallocated arrays being used to test whether a pointer is set to the unrotated tracer reservoirs in cases where there are no tracers. This commit does change (and fix) answers when grid rotation is used, but answers are bitwise identical when there is no grid rotation, and there are no changes to any public interfaces.