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_serial() [1/2]

void pism::connected_components::label_serial ( array::Scalar mask,
bool  mark_isolated_components,
int  reachable 
)

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

See the comment for the other label_serial for meanings of mark_isolated_components and reachable.

Copies data from mask to rank 0 and processes it there.

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.

Definition at line 49 of file label_components_serial.cc.

References pism::array::Array::allocate_proc0_copy(), pism::ParallelSection::check(), pism::ParallelSection::failed(), pism::petsc::VecArray::get(), pism::array::Array::get_from_proc0(), pism::array::Array::grid(), label_serial(), and pism::array::Array::put_on_proc0().