interpolation_m Module



Functions

public function interpol1d(intorder, nnodes, dx, ui, x)

Performs a 1D polynomial interpolation

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: intorder

Interpoaltion order, yet only 1 and 3 ar available

integer, intent(in) :: nnodes

Number of nodes of interpolation data

real(kind=FP), intent(in) :: dx

Distance between nodes (equidistant)

real(kind=FP), intent(in), dimension(nnodes) :: ui

Values of interpolation data

real(kind=FP), intent(in) :: x

Return Value real(kind=fp)


Subroutines

public subroutine interpol_coeffs(intorder, x, y, coeffs)

computes coefficients of interpolation such that quantity at position x,y can be computed as

Read more…

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: intorder
real(kind=FP), intent(in) :: x
real(kind=FP), intent(in) :: y
real(kind=FP), intent(out), dimension(intorder+1,intorder+1) :: coeffs