PISM, A Parallel Ice Sheet Model 2.3.0-79cae578d committed by Constantine Khrulev on 2026-03-22
Loading...
Searching...
No Matches

◆ 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 241 of file Grid.cc.

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