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

◆ weight() [1/2]

static int pism::stressbalance::weight ( bool  margin_bc,
int  M_ij,
int  M_n,
double  h_ij,
double  h_n,
int  N_ij,
int  N_n 
)
static

Compute the weight used to determine if the difference between locations i,j and n (neighbor) should be used in the computation of the surface gradient in SSA::compute_driving_stress().

We avoid differencing across

  • ice margins if stress boundary condition at ice margins (CFBC) is active
  • grounding lines
  • ice margins next to ice free locations above the surface elevation of the ice (fjord walls, nunataks, headwalls)

Definition at line 188 of file SSA.cc.

References pism::mask::floating_ice(), pism::mask::grounded(), pism::mask::ice_free(), pism::mask::ice_free_ocean(), and pism::mask::icy().