Skip to content

Commit

Permalink
Merge pull request #730 from trhille/landice/fix_antarctica_mesh_gen
Browse files Browse the repository at this point in the history
Fix `landice/antarctica/mesh_gen`. This reverts commit 8b327bd, which inadvertently broke the landice/antarctica/mesh_gen case and could lead to unexpected behavior elsewhere.
  • Loading branch information
trhille authored Nov 13, 2023
2 parents 5327d22 + 6ff2656 commit e5c0e82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compass/landice/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,10 @@ def build_cell_width(self, section_name, gridded_dataset,
geom_points, geom_edges = set_rectangular_geom_points_and_edges(*bnds)

# Remove ice not connected to the ice sheet.
flood_mask = gridded_flood_fill(thk) == 0
thk[flood_mask] = 0.0
vx[flood_mask] = 0.0
vy[flood_mask] = 0.0
flood_mask = gridded_flood_fill(thk)
thk[flood_mask == 0] = 0.0
vx[flood_mask == 0] = 0.0
vy[flood_mask == 0] = 0.0

# Calculate distance from each grid point to ice edge
# and grounding line, for use in cell spacing functions.
Expand Down

0 comments on commit e5c0e82

Please sign in to comment.