PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ 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().