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

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