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

◆ compute_ocean_input_per_basin()

void pism::ocean::Pico::compute_ocean_input_per_basin ( const PicoPhysics physics,
const array::Scalar basin_mask,
const array::Scalar continental_shelf_mask,
const array::Scalar salinity_ocean,
const array::Scalar theta_ocean,
std::vector< double > &  temperature,
std::vector< double > &  salinity 
) const
private

Compute temperature and salinity input from ocean data by averaging.

We average the ocean data over the continental shelf reagion for each basin. We use dummy ocean data if no such average can be calculated.

Definition at line 374 of file Pico.cc.

References pism::array::Scalar::as_int(), count, pism::GlobalSum(), pism::Component::m_grid, pism::Component::m_log, m_n_basins, pism::ocean::PicoPhysics::S_dummy(), and pism::ocean::PicoPhysics::T_dummy().

Referenced by update_impl().