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

◆ init_linear()

void pism::Interpolation::init_linear ( const double *  input_x,
unsigned int  input_x_size,
const double *  output_x,
unsigned int  output_x_size 
)
private

Compute linear interpolation indexes and weights.

Parameters
[in]input_xcoordinates of the input grid
[in]input_x_sizenumber of points in the input grid
[in]output_xcoordinates of the output grid
[in]output_x_sizenumber of points in the output grid

Definition at line 89 of file interpolation.cc.

References alpha(), L, m_alpha, m_left, and m_right.

Referenced by init_nearest(), and Interpolation().