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

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