74 auto grid = mask.grid();
78 for (
auto p : grid->points()) {
79 const int i = p.i(), j = p.j();
80 if (mask.ice_free(i, j) or
81 (mask.grounded_ice(i, j) and bed(i, j) >= sea_level(i, j))) {
96 if ((not ice_free.w and
120 ice_thickness(i, j) = 0.0;