Loading [MathJax]/jax/output/HTML-CSS/config.js
PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ label_components() [1/2]

void pism::label_components ( array::Scalar mask,
bool  identify_icebergs,
double  mask_grounded 
)

Label connected components in a mask stored in an array::Scalar.

This function allocates a copy on rank 0 and so should not be used if that is a problem.

Parameters
[in,out]maskmask used to identify components (modified in place)
[in]identify_icebergstrue to label blobs not connected to mask_grounded 1, the rest with 0, false to assign unique labels to all blobs.
[in]mask_groundedvalue in mask that is interpreted as "grounded"

Definition at line 55 of file label_components.cc.

References pism::array::Array::allocate_proc0_copy(), and label_components().