PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
Loading...
Searching...
No Matches

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