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

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