PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ 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 461 of file PicoGeometry.cc.

References pism::ocean::BY_AREA, pism::array::Array2D< T >::copy_from(), pism::array::CellType::ice_free_ocean(), pism::label_components(), pism::Component::m_grid, m_tmp, m_tmp_p0, and pism::ocean::relabel().

Referenced by update().