PISM, A Parallel Ice Sheet Model 2.2.1-cd005eec8 committed by Constantine Khrulev on 2025-03-07
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 275 of file Grid.cc.

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