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

◆ limit_advective_flux()

static double pism::limit_advective_flux ( int  current,
int  neighbor,
double  input 
)
static

Prevent advective ice flow from floating ice to ice-free land, as well as in the ice-free areas.

Note: positive input corresponds to the flux from current to neighbor.

Definition at line 415 of file GeometryEvolution.cc.

References pism::mask::floating_ice(), pism::RuntimeError::formatted(), pism::mask::grounded_ice(), pism::mask::ice_free_land(), pism::mask::ice_free_ocean(), and PISM_ERROR_LOCATION.

Referenced by pism::GeometryEvolution::compute_interface_fluxes().