MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
interpolation.f90 File Reference

Piecewise linear interpolation. More...

Go to the source code of this file.

Functions/Subroutines

subroutine, public interpolation::pwl_interp_1d (nd, xd, yd, ni, xi, yi)
 Interpolates in 1D function. More...
 

Detailed Description

Piecewise linear interpolation.

Subroutine for linear interpolation and extrapolation. Source: http://people.sc.fsu.edu/~jburkardt/f_src/pwl_interp_1d/pwl_interp_1d.html.

Definition in file interpolation.f90.

Function/Subroutine Documentation

◆ pwl_interp_1d()

subroutine public interpolation::pwl_interp_1d ( integer ( kind = 4 )  nd,
real ( kind = dp ), dimension(nd)  xd,
real ( kind = dp ), dimension(nd)  yd,
integer ( kind = 4 )  ni,
real ( kind = dp ), dimension(ni)  xi,
real ( kind = dp ), dimension(ni)  yi 
)

Interpolates in 1D function.

Piecewise linear interpolation or extrapolation. Function is defined by discrete points. Subroutine can interpolate several points as once.

Parameters
ndnumber of data points, must be at least 1
ninumber of interpolation points
xddata points
yddata values
xiinterpolation points
yiinterpolation values
ndnumber of data points, must be at least 1
ninumber of interpolation points
xddata points
yddata values
xiinterpolation points
yiinterpolation values

Definition at line 40 of file interpolation.f90.