Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ 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, and PISM_ERROR_LOCATION.

Referenced by update_impl().