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

◆ dummy_runoff()

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

Use the surface mass balance to compute dummy runoff.

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 380 of file SurfaceModel.cc.

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

Referenced by dummy_melt(), 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().