PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ 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().