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

◆ label_isolated()

void pism::connected_components::label_isolated ( array::Scalar1 mask,
int  reachable 
)

Label connected components not connected to areas marked with reachable.

Patches not connected to reachable are filled with ones, the rest of the mask is set to zero.

The argument mask has to have ghosts since this algorithm uses a ghosted array: requiring a ghosted mask allows us to use mask for temporary storage.

Note: ghosts of mask are not valid upon returning from this function.

Definition at line 368 of file label_components_parallel.cc.

References pism::label_components_impl().

Referenced by pism::ocean::PicoGeometry::compute_continental_shelf_mask(), pism::ocean::PicoGeometry::compute_lakes(), pism::IceModel::identify_open_ocean(), pism::calving::IcebergRemover::update_impl(), and pism::calving::IcebergRemoverFEM::update_impl().