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()

void pism::connected_components::label ( array::Scalar1 mask)

Label connected components in a mask, modifying it "in place".

Each component is assigned a unique ID using consecutive integers starting from 1.

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 360 of file label_components_parallel.cc.

References pism::label_components_impl().

Referenced by pism::ocean::PicoGeometry::compute_ice_rises(), pism::ocean::PicoGeometry::compute_ice_shelf_mask(), pism::ocean::PicoGeometry::compute_ocean_mask(), and label_serial().