Skip to main content

LegendreInvTransform

Discrete Inverse Legendre transform.

Interface

INTERFACE
MODULE PURE FUNCTION LegendreInvTransform(n, coeff, x) &
& RESULT(ans)
INTEGER(I4B), INTENT(IN) :: n
!! order of Jacobi polynomial
REAL(DFP), INTENT(IN) :: coeff(0:n)
!! n+1 coefficient (modal values)
REAL(DFP), INTENT(IN) :: x
!! x point in physical space
REAL(DFP) :: ans
!! value in physical space
END FUNCTION LegendreInvTransform
END INTERFACE

Interface 2

INTERFACE
MODULE PURE FUNCTION LegendreInvTransform(n, coeff, x) &
& RESULT(ans)
INTEGER(I4B), INTENT(IN) :: n
!! order of Jacobi polynomial
REAL(DFP), INTENT(IN) :: coeff(0:n)
!! n+1 coefficient (modal values)
REAL(DFP), INTENT(IN) :: x(:)
!! x point in physical space
REAL(DFP) :: ans(SIZE(x))
!! value in physical space
END FUNCTION LegendreInvTransform
END INTERFACE