PISM, A Parallel Ice Sheet Model  stable v2.0.4 committed by Constantine Khrulev on 2022-05-25 12:02:27 -0800

◆ dummy_runoff()

void pism::surface::SurfaceModel::dummy_runoff ( const IceModelVec2S smb,
IceModelVec2S 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 398 of file SurfaceModel.cc.

References pism::Component::m_grid, pism::max(), and pism::PointsWithGhosts::next().

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