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

◆ blatter_restriction_hook()

static PetscErrorCode pism::stressbalance::blatter_restriction_hook ( DM  fine,
Mat  mrestrict,
Vec  rscale,
Mat  inject,
DM  coarse,
void *  ctx 
)
static

Restrict 2D and 3D model parameters from a fine grid to a coarse grid.

Re-compute node types from geometry.

This hook is called every time SNES needs to update coarse-grid data.

FIXME: parameters restricted by this hook do not change from one SNES iteration to the next, so we can return early after the first one.

Definition at line 344 of file Blatter.cc.

References pism::restrict_data().

Referenced by blatter_coarsening_hook(), and pism::stressbalance::Blatter::setup().