PISM, A Parallel Ice Sheet Model  stable v2.0.6 committed by Constantine Khrulev on 2023-01-23 15:14:38 -0900

◆ kBelowHeight()

unsigned int pism::IceGrid::kBelowHeight ( double  height) const

Return the index k into zlevels[] so that zlevels[k] <= height < zlevels[k+1] and k < Mz.

Definition at line 435 of file IceGrid.cc.

References pism::IceGrid::Impl::bsearch_accel, pism::RuntimeError::formatted(), Lz(), m_impl, PISM_ERROR_LOCATION, and pism::IceGrid::Impl::z.

Referenced by pism::rheology::averaged_hardness_vec(), and pism::compute_strain_heating_errors().