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

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