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

◆ staggered_to_regular() [1/2]

void pism::array::staggered_to_regular ( const array::CellType1 cell_type,
const array::Staggered1 input,
bool  include_floating_ice,
array::Scalar result 
)

Average a scalar field from the staggered grid onto the regular grid by considering only ice-covered grid.

If include_floating_ice is true, include floating ice, otherwise consider grounded icy cells only.

Definition at line 87 of file Staggered.cc.

References pism::F(), pism::array::Array::grid(), pism::array::CellType::grounded_ice(), pism::mask::grounded_ice(), pism::array::CellType::icy(), pism::mask::icy(), n, pism::array::Array2D< T >::star(), and pism::array::Staggered1::star().

Referenced by pism::stressbalance::SIAFD_diffusivity::compute_impl(), pism::hydrology::EmptyingProblem::update(), pism::hydrology::Distributed::update_impl(), and pism::hydrology::Routing::update_impl().