21 #include "pism/geometry/part_grid_threshold_thickness.hh"
22 #include "pism/util/Mask.hh"
34 double bed_elevation) {
45 H_average += ice_thickness[d];
46 h_average += surface_elevation[d];
57 H_average = H_average / N;
58 h_average = h_average / N;
60 if (bed_elevation + H_average > h_average) {
61 H_threshold = h_average - bed_elevation;
63 H_threshold = H_average;
double max(const array::Scalar &input)
Finds maximum over all the values in an array::Scalar object. Ignores ghosts.
bool icy(int M)
Ice-filled cell (grounded or floating).
double part_grid_threshold_thickness(stencils::Star< int > cell_type, stencils::Star< double > ice_thickness, stencils::Star< double > surface_elevation, double bed_elevation)
Compute threshold thickness used when deciding if a partially-filled cell should be considered 'full'...
Star stencil points (in the map-plane).