Skip to main content

LegendreDMatrix

Interface

INTERFACE
MODULE PURE FUNCTION LegendreDMatrix(n, x, quadType) &
& RESULT(ans)
INTEGER(I4B), INTENT(IN) :: n
!! order of Legendre polynomial
REAL(DFP), INTENT(IN) :: x(0:n)
!! quadrature points
INTEGER(I4B), INTENT(IN) :: quadType
!! Gauss and GaussLobatto
REAL(DFP) :: ans(0:n, 0:n)
!! D matrix
END FUNCTION LegendreDMatrix
END INTERFACE