Interpolation of function values f(x_i)=f_i, i=1,n with a cubic spline, given left and right boundary condition types of boundary conditions: 0: not-a-knot 1: f'(x_boundary)=0 2: f''(x_boundary)=0
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | x(:) |
x positions |
||
| real(kind=wp), | intent(in) | :: | f(:) |
function values at x positions |
||
| integer, | intent(in) | :: | BC(1:2) |
Boundary condition at x(1)/x(n): =0: not-a-knot, =1: first der. =BC_val(1)/BC_val(2), =2: second der. =BC_val(1)/BC_val(2) |
||
| real(kind=wp), | intent(in), | optional | :: | BC_val(1:2) |
Boundary value for BC(1:2) >0, |
self