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

◆ check_P_bounds()

void pism::hydrology::Distributed::check_P_bounds ( array::Scalar P,
const array::Scalar P_o,
bool  enforce_upper 
)
protected

Check bounds on P and fail with message if not satisfied. Optionally, enforces the upper bound instead of checking it.

The bounds are \(0 \le P \le P_o\) where \(P_o\) is the overburden pressure.

Definition at line 126 of file Distributed.cc.

References pism::ParallelSection::check(), pism::ParallelSection::failed(), pism::RuntimeError::formatted(), pism::Component::m_grid, pism::array::min(), and PISM_ERROR_LOCATION.

Referenced by update_impl().