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

◆ compute_nuH_norm()

std::array< double, 2 > pism::stressbalance::SSAFD::compute_nuH_norm ( const array::Staggered nuH,
array::Staggered nuH_old 
)
protected

Compute the norm of nu H and the norm of the change in nu H.

Verification and PST experiments suggest that an \(L^1\) criterion for convergence is best. For verification there seems to be little difference, presumably because the solutions are smooth and the norms are roughly equivalent on a subspace of smooth functions. For PST, the \(L^1\) criterion gives faster runs with essentially the same results. Presumably that is because rapid (temporal and spatial) variation in \(\nu H\) occurs at margins, occupying very few horizontal grid cells. For the significant (e.g.~in terms of flux) parts of the flow, it is o.k. to ignore a bit of bad behavior at these few places, and \(L^1\) ignores it more than \(L^2\) (much less \(L^\infty\), which might not work at all).

Note: clobbers nuH_old – it is used to compute the change in nu H.

Definition at line 577 of file SSAFD.cc.

References pism::array::Array::add(), pism::Component::m_grid, and pism::array::Array::norm().

Referenced by picard_manager().