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

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