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

◆ relabel()

void pism::details::relabel ( array::Scalar mask,
const std::map< int, int > &  labels 
)

Assign new labels to elements of mask. Does not touch background grid cells.

This function assumes that mask was labeled using connected_components::details::label()

Definition at line 275 of file label_components_parallel.cc.

References pism::array::Scalar::as_int(), and pism::array::Array::grid().

Referenced by pism::label_components_impl().