20 #ifndef PICOGEOMETRY_H
21 #define PICOGEOMETRY_H
26 #include "pism/util/Component.hh"
27 #include "pism/util/array/Scalar.hh"
61 double bed_elevation_threshold,
74 std::vector<int> &most_shelf_cells_in_basin,
75 std::vector<int> &cfs_in_basins_per_shelf);
80 const std::vector<int> &most_shelf_cells_in_basin,
81 const std::vector<int> &cfs_in_basins_per_shelf,
87 bool exclude_ice_rises,
92 bool exclude_ice_rises,
98 int max_number_of_boxes,
std::shared_ptr< const Grid > grid() const
A class defining a common interface for most PISM sub-models.
"Cell type" mask. Adds convenience methods to array::Scalar.
const array::Scalar & continental_shelf_mask() const
void split_ice_shelves(const array::CellType &cell_type, const array::Scalar &basin_mask, const std::vector< std::set< int > > &basin_neighbors, const std::vector< int > &most_shelf_cells_in_basin, const std::vector< int > &cfs_in_basins_per_shelf, int n_shelves, array::Scalar &shelf_mask)
array::Scalar m_continental_shelf
std::shared_ptr< petsc::Vec > m_tmp_p0
void compute_box_mask(const array::Scalar &D_gl, const array::Scalar &D_cf, const array::Scalar &shelf_mask, int max_number_of_boxes, array::Scalar &result)
array::Scalar1 m_ice_rises
array::Scalar m_lake_mask
PicoGeometry(std::shared_ptr< const Grid > grid)
void compute_ocean_mask(const array::CellType &cell_type, array::Scalar &result)
const array::Scalar & ice_shelf_mask() const
array::Scalar1 m_distance_gl
void compute_distances_gl(const array::Scalar &ocean_mask, const array::Scalar1 &ice_rises, bool exclude_ice_rises, array::Scalar1 &result)
void compute_distances_cf(const array::Scalar1 &ocean_mask, const array::Scalar &ice_rises, bool exclude_ice_rises, array::Scalar1 &result)
std::vector< std::set< int > > basin_neighbors(const array::CellType1 &cell_type, const array::Scalar1 &basin_mask)
const array::Scalar & ice_rise_mask() const
void compute_ice_shelf_mask(const array::Scalar &ice_rise_mask, const array::Scalar &lake_mask, array::Scalar &result)
array::Scalar1 m_basin_mask
void compute_ice_rises(const array::CellType &cell_type, bool exclude_ice_rises, array::Scalar &result)
array::Scalar1 m_ocean_mask
std::vector< std::set< int > > m_basin_neighbors
array::Scalar m_ice_shelves
void compute_lakes(const array::CellType &cell_type, array::Scalar &result)
void relabel_by_size(array::Scalar &mask)
void update(const array::Scalar &bed_elevation, const array::CellType1 &cell_type)
void compute_continental_shelf_mask(const array::Scalar &bed_elevation, const array::Scalar &ice_rise_mask, double bed_elevation_threshold, array::Scalar &result)
const array::Scalar & basin_mask() const
const array::Scalar & box_mask() const
array::Scalar1 m_distance_cf
void identify_calving_front_connection(const array::CellType1 &cell_type, const array::Scalar &basin_mask, const array::Scalar &shelf_mask, int n_shelves, std::vector< int > &most_shelf_cells_in_basin, std::vector< int > &cfs_in_basins_per_shelf)
virtual ~PicoGeometry()=default
bool ocean(int M)
An ocean cell (floating ice or ice-free).
void eikonal_equation(array::Scalar1 &mask)