Skip to content
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 landice/antarctica/mesh_gen #730

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

trhille
Copy link
Collaborator

@trhille trhille commented Nov 13, 2023

This reverts commit 8b327bd, which inadvertently broke the landice/antarctica/mesh_gen case and could lead to unexpected behavior elsewhere.

Checklist

  • Document (in a comment titled Testing in this PR) any testing that was used to verify the changes

This closes #729.

This reverts commit 8b327bd, which
inadvertently broke the `landice/antarctica/mesh_gen` case and could
lead to unexpected behavior elsewhere.
@trhille
Copy link
Collaborator Author

trhille commented Nov 13, 2023

Testing

The mesh created using the current head of origin/main is just a collection of islands:
image

Using this branch results in the expected behavior:
image

@trhille trhille requested a review from xylar November 13, 2023 22:41
Comment on lines +532 to +535
flood_mask = gridded_flood_fill(thk)
thk[flood_mask == 0] = 0.0
vx[flood_mask == 0] = 0.0
vy[flood_mask == 0] = 0.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why the original change didn't work. I would think it would be identical to the following, which would be identical to the code after reversion.

    flood_mask = gridded_flood_fill(thk)
    mask = (flood_mask == 0)
    thk[mask] = 0.0
    vx[mask] = 0.0
    vy[mask] = 0.0

But it's not worth exploring further.

@xylar xylar added the bug Something isn't working label Nov 13, 2023
@trhille trhille merged commit e5c0e82 into MPAS-Dev:main Nov 13, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working land ice
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Major bug in landice/antarctica/mesh_gen
2 participants