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

◆ compute_box_average()

void pism::ocean::Pico::compute_box_average ( int  box_id,
const array::Scalar field,
const array::Scalar shelf_mask,
const array::Scalar box_mask,
std::vector< double > &  result 
) const
private

For each shelf, compute average of a given field over the box with id box_id.

This method is used to get inputs from a previous box for the next one.

Definition at line 811 of file Pico.cc.

References pism::array::Scalar::as_int(), pism::GlobalSum(), pism::Component::m_grid, and m_n_shelves.

Referenced by process_other_boxes().