Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.1-cd005eec8 committed by Constantine Khrulev on 2025-03-07
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ basin_neighbors()

std::vector< std::set< int > > pism::ocean::PicoGeometry::basin_neighbors ( const array::CellType1 cell_type,
const array::Scalar1 basin_mask 
)
private

Find neighboring basins by checking for the basin boundaries on the ice free ocean.

Should we identify the intersection at the coastline instead?

Returns the map from the basin index to a set of indexes of neighbors.

Definition at line 522 of file PicoGeometry.cc.

References basin_mask(), pism::GlobalMax(), pism::array::CellType::ice_free_ocean(), pism::mask::ice_free_ocean(), pism::Component::m_grid, m_n_basins, pism::array::CellType1::next_to_ice(), pism::array::CellType1::star_int(), and pism::array::Scalar::star_int().

Referenced by split_ice_shelves(), and update().