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

◆ compute_ocean_mask()

void pism::ocean::PicoGeometry::compute_ocean_mask ( const array::CellType cell_type,
array::Scalar result 
)
private

Compute the mask identifying ice-free ocean and "holes" in ice shelves.

Resulting mask contains:

  • 0 - icy cells
  • 1 - ice-free ocean which is not connected to the open ocean
  • 2 - open ocean

Definition at line 488 of file PicoGeometry.cc.

References pism::Profiling::begin(), pism::ocean::BY_AREA, pism::array::Array2D< T >::copy_from(), pism::Profiling::end(), pism::array::CellType::ice_free_ocean(), pism::connected_components::label(), pism::Component::m_grid, m_tmp, pism::Component::profiling(), and pism::ocean::relabel().

Referenced by update().