-
Notifications
You must be signed in to change notification settings - Fork 66
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
Obc tracer fix #507
Obc tracer fix #507
Conversation
Codecov Report
@@ Coverage Diff @@
## dev/gfdl #507 +/- ##
============================================
- Coverage 37.45% 37.45% -0.01%
============================================
Files 270 270
Lines 79675 79692 +17
Branches 14818 14823 +5
============================================
+ Hits 29846 29849 +3
- Misses 44299 44308 +9
- Partials 5530 5535 +5
📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
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.
Please modify the altered code in MOM.F90 so that the indenting at about lines 1630-1632 matches the structure of the logical block, and that the structure of the logical block at 1629 matches with what is intended.
Thanks, Bob, sorry about that. |
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.
These changes now look good to me.
Maybe @marshallward knows why it is now failing the tests? |
The error:
The line that is failing:
It doesn't like how the fourth dimension is being passed here. Going through the interfaces may be confusing things, since 4d versions exist and we hope to recasting this thing from 4d to 3d by explicitly setting Or are we actually reshaping it? Is it passing an array of size I don't know how an index range of I feel like I've done this sort of reduction from 4d to 3d dozens of time without problems, so maybe my words are a distraction from the true issue. I'll have a look and see if I can find anything. In the meantime, try a reshape or copy and see what happens? Backtrace for reference:
|
Thanks, Marshall. Because it runs for me, it didn't occur to me that this wasn't just the auto-testing being problematic for no good reason. |
@kshedstrom Just checking, this is ready to go in? |
Yes, I think it's fine. |
Still getting the whalo error... I will have a look. |
Ooops, sorry, will fix it. |
I don't understand this. When I run the tc tests, the only one to fail is tc3.openmp:
|
It seems that the fix for one problem breaks the other, and vice versa. |
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 is now functionally correct, and I think that it should be merged in. (I can see how to make the code a bit more succinct at one point with the setting and logging of parameters, but I do not want to hold this up any further over that essentially cosmetic point, now that this is doing the right thing.)
- it only happens in the advection for certain flow directions, inflow from OBC plus along-boundary flow.
- This one should finally fix the processor count issues with OBCs.
- This will change answers if you start with a non-zero velocity. You need three halo points (or maybe cont_stencil) for the continuity solver. - Also trying to put in some initial DEBUG_OBC code.
- Way to trick some compiler.
- without this, because we're remapping all the tres points, it dies in debug mode on bad h_new values.
- as it was, it was passing my tests, failing the auto-tests.
- Making an error more verbose too.
3580714
to
e5b194d
Compare
I am inclined to do a squash-merge on this PR, given the number of small commits and corrections that this PR contains. Would you concur with that approach, @kshedstrom and @marshallward? |
Fine with me (assumuing it passes regression testing, of course) |
Yes, OK to squash. |
This PR has passed pipeline testing at gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/21264. |
Try again at fixing #506. Everything matched at a halo point two in except for h at the very top. Just above this in the code, there is a halo update on h, but just with halo=1.