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

◆ staggered_to_regular() [2/2]

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

Average a vector 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 131 of file Staggered.cc.

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