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

◆ compute_surface_and_basal_mass_balance()

void pism::GeometryEvolution::compute_surface_and_basal_mass_balance ( double  dt,
const array::Scalar thickness_bc_mask,
const array::Scalar ice_thickness,
const array::CellType cell_type,
const array::Scalar smb_flux,
const array::Scalar basal_melt_rate,
array::Scalar effective_SMB,
array::Scalar effective_BMB 
)
protectedvirtual

Compute effective surface and basal mass balance.

Parameters
[in]dttime step, seconds
[in]thickness_bc_maskmask specifying ice thickness Dirichlet B.C. locations
[in]ice_thicknessice thickness, m
[in]thickness_changethickness change due to flow, m
[in]cell_typecell type mask
[in]smb_ratetop surface mass balance rate, kg m-2 s-1
[in]basal_melt_ratebasal melt rate, m s-1
[out]effective_smbeffective top surface mass balance, m
[out]effective_bmbeffective basal mass balance, m

This computation is purely local.

Positive outputs correspond to mass gain.

Reimplemented in pism::RegionalGeometryEvolution.

Definition at line 1018 of file GeometryEvolution.cc.

References pism::array::Scalar::as_int(), pism::ParallelSection::check(), pism::effective_change(), pism::ParallelSection::failed(), pism::GeometryEvolution::Impl::ice_density, pism::array::CellType::ice_free_ocean(), pism::Component::m_grid, m_impl, and pism::GeometryEvolution::Impl::use_bmr.

Referenced by pism::RegionalGeometryEvolution::compute_surface_and_basal_mass_balance(), and source_term_step().