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

◆ water_thickness_staggered()

void pism::hydrology::Routing::water_thickness_staggered ( const array::Scalar W,
const array::CellType1 mask,
array::Staggered result 
)
protected

Average the regular grid water thickness to values at the center of cell edges.

Uses mask values to avoid averaging using water thickness values from either ice-free or floating areas.

Definition at line 377 of file Routing.cc.

References pism::array::CellType::grounded_ice(), pism::array::CellType::icy(), pism::Component::m_config, pism::Component::m_grid, and pism::array::Array::update_ghosts().

Referenced by pism::hydrology::Distributed::update_impl(), and update_impl().