20 #include "pism/frontretreat/util/remove_narrow_tongues.hh"
22 #include "pism/util/Grid.hh"
23 #include "pism/geometry/Geometry.hh"
67 auto grid = mask.
grid();
71 for (
auto p = grid->points(); p; p.next()) {
72 const int i = p.i(), j = p.j();
73 if (mask.ice_free(i, j) or
74 (mask.grounded_ice(i, j) and bed(i, j) >= sea_level(i, j))) {
79 auto M = mask.box_int(i, j);
132 ice_thickness(i, j) = 0.0;
array::Scalar1 sea_level_elevation
array::CellType2 cell_type
array::Scalar2 bed_elevation
Makes sure that we call begin_access() and end_access() for all accessed array::Arrays.
std::shared_ptr< const Grid > grid() const
bool ice_free_ocean(int M)
bool ice_free(int M)
Ice-free cell (grounded or ocean).
void remove_narrow_tongues(const Geometry &geometry, array::Scalar &ice_thickness)