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

◆ interpolation_weights()

std::vector< double > pism::Grid::interpolation_weights ( double  x,
double  y 
) const

Compute 4 interpolation weights necessary for linear interpolation from the current grid. See compute_point_neighbors for the ordering of neighbors.

Definition at line 488 of file Grid.cc.

References compute_point_neighbors(), m_impl, pism::Grid::Impl::x, and pism::Grid::Impl::y.