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_area()

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

For all shelves compute areas of boxes with id box_id.

Parameters
[in]box_maskbox index mask
[out]resultresulting box areas.

Note: shelf and box indexes start from 1.

Definition at line 864 of file Pico.cc.

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

Referenced by process_box1(), and process_other_boxes().