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

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