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

◆ dummy_accumulation()

void pism::surface::SurfaceModel::dummy_accumulation ( const array::Scalar smb,
array::Scalar result 
)
protected

Use the surface mass balance to compute dummy accumulation.

This is used by surface models that compute the SMB but do not provide accumulation, melt, and runoff.

We assume that the positive part of the SMB is accumulation and the negative part is runoff. This ensures that outputs of PISM's surface models satisfy "SMB = accumulation - runoff".

Definition at line 360 of file SurfaceModel.cc.

References pism::Component::m_grid, and pism::array::max().

Referenced by pism::icebin::IBSurfaceModel::update_impl(), pism::surface::Anomaly::update_impl(), pism::surface::PIK::update_impl(), pism::surface::EISMINTII::update_impl(), pism::surface::Elevation::update_impl(), pism::surface::ElevationChange::update_impl(), pism::surface::ForceThickness::update_impl(), pism::surface::Given::update_impl(), pism::surface::ISMIP6::update_impl(), pism::surface::NoGLRetreat::update_impl(), and pism::surface::Simple::update_impl().