Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ 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 345 of file Blatter.cc.

References pism::restrict_data().

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