PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ kBelowHeight()

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

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

Definition at line 291 of file Grid.cc.

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

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