lagrange_unit_weights Subroutine

private pure subroutine lagrange_unit_weights(w, t, c)

Lagrange weights c(1:w) for interpolating/extrapolating a unit-spacing line sampled at local positions 0,1,...,w-1 to the (possibly out-of-range) target offset t. Used to build the ghost values that close the symmetric stencil at domain boundaries.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: w
real(kind=wp), intent(in) :: t
real(kind=wp), intent(out) :: c(:)