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

◆ compute_enth2()

void pism::icebin::IBIceModel::compute_enth2 ( pism::array::Scalar enth2,
pism::array::Scalar mass2 
)

Sums over columns to compute enthalpy on 2D m_grid. This is used to track conservation of energy.

NOTE: Unfortunately so far PISM does not keep track of enthalpy in "partially-filled" cells, so Enth2(i,j) is not valid at locations like this one. We need to address this, but so far, it seems to me, the best thing we can do is estimate Enth2(i,j) at partially-filled cells by computing the average over icy neighbors. I think you can re-use the idea from IceModel::get_threshold_thickness(...) (iMpartm_grid->cc).

Definition at line 372 of file IBIceModel.cc.

References pism::Geometry::ice_thickness, pism::k, pism::IceModel::m_config, pism::IceModel::m_energy_model, pism::IceModel::m_geometry, and pism::IceModel::m_grid.

Referenced by misc_setup(), and set_rate().