-
Notifications
You must be signed in to change notification settings - Fork 31
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
Merge Duplicate Node Indices #879
base: zedwick/dual_mesh
Are you sure you want to change the base?
Conversation
Do you know what the problem was with the previous implementation? If I remember it was still having problems? |
I haven't been able to pinpoint the problem, but everything appears to be working correctly here according to the tests. |
I'm going to merge these changes into the branch used in #859 to see the compatibility. |
May you take a look at the case using the |
what tests are failing? we may want to issue a warning on how and what is supported. |
Something with the Dual Mesh Construction on the Cube Sphere grid is breaking. It's complaining about a dimension miss match when assigned the faces. I don't believe it's an issue with how we are merging ndoes. |
Oh yeah, I know the problem. Let me fix it for you. |
@philipc2 There you go! |
Thanks for fixing this so quickly! |
@philipc2 I am not exactly sure what's happening, but I don't believe its a problem with my code. The only reason you are getting that error is because the connectivity that you are passing in is broken I think. Comment out the line in construct_faces that says if |
Yeah that seems to be the case, I'll look into it! |
Something still appears to be off, I'm getting the same error now (even though the connectivity appears to have been corrected) |
Can you push the changes that fixed the connectivity? |
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.
just one minor test and this is good go.
|
||
def test_duplicate(self): | ||
uxgrid = ux.open_grid(gridfile_geos) | ||
uxgrid.merge_duplicate_node_indices() |
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.
add an assert to check that compute_dual
fails or produces incorrect stuff without this operation.
Closes #865
Overview
merge_duplicate_node_indices()
function that replaces the index of nodes that have the exact latitude and longitude to only reference one node.Expected Usage